Adds a new datatype called Ubolt.ContentPicker that`s using Umbraco's content picker controller, but adds the option to set a start node, and filter out content types.
The packages allso contains a property value converter that converts to IPublishedContent.
After installation create a new datatype and selecet Ubolt.ContentPicker, and fill out prevalues:
Nuget Package
www.nuget.org/packages/Ubolt.ContentPicker/
Install-Package Ubolt.ContentPicker
Example
@if (Model.Content.HasValue("uContentPicker")) {
var pickedeNode = Model.Content.GetPropertyValue<IPublishedContent>("uContentPicker");
<a href="@pickedeNode.Url">@pickedeNode.Name</a>
}
Bug reports