Content Picker

    Alias: Umbraco.ContentPicker

    Returns: IPublishedContent

    The content picker opens a panel to pick a specific page from the content structure. The value saved is the selected nodes UDI

    Data Type Definition Example

    Content Picker Data Type Definition

    Content Example

    Content Picker Content

    MVC View Example

    Without Modelsbuilder

    @{
        IPublishedContent typedContentPicker = Model.Value<IPublishedContent>("featurePicker");
        if (typedContentPicker != null)
        {
            <p>@typedContentPicker.Name</p>
        }
    }
    

    With Modelsbuilder

    @{
        IPublishedContent typedContentPicker = Model.FeaturePicker;
        if (typedContentPicker != null)
        {
            <p>@typedContentPicker.Name</p>
        }
    }