I’m using the MultinodeTreePicker to select related content. Is it possible to display custom properties?
My code:
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
if(@CurrentPage.HasValue("trainingen"))
{
foreach (var item in @CurrentPage.trainingen.ToString().Split(','))
{
var page = Umbraco.TypedContent(item);
if(page != null){
<div>
<a href="@page.Url">
@page.Name
</a>
</div>
}
}
}
When I use @page.CustomPropertie the error says “‘Umbraco.Web.Models.PublishedContentWithKeyBase’ does not contain a definition for ‘CustomPropertie’”.
What is the best way to do this?
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/75654-custom-properties-on-multinodetreepicker