'umbraco.item' does not contain a definition for 'Name'
I'm getting the following error depending on the position of my code block, why would Umbraco throw an error when the code is inside HTML markup, but not when it's outside of HTML markup?
No error:
{ if (project.HasValue("projectCategories")) { var typedMultiNodeTreePickerCSV = project.GetPropertyValue<string>("projectCategories"); var typedPublishedMNTPNodeListCSV = typedMultiNodeTreePickerCSV.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).Select(int.Parse); var typedMNTPCollectionCSV = Umbraco.TypedContent(typedPublishedMNTPNodeListCSV).Where(x => x != null); foreach (var item in typedMNTPCollectionCSV) { <p>@item.Name</p> } } }
'umbraco.item' does not contain a definition for 'Name'
I'm getting the following error depending on the position of my code block, why would Umbraco throw an error when the code is inside HTML markup, but not when it's outside of HTML markup?
No error:
Error:
Hi Amir,
How about this:
Hope this helps,
/Dennis
Yep! You're the man, thanks Dennis.
is working on a reply...