This however is giving me the following error msg:
CS1973: 'System.Collections.Generic.IEnumerable<Umbraco.Core.Models.IPublishedContent>' has no applicable method named 'GetProperty' but appears to have an extension method by that name. Extension methods cannot be dynamically dispatched. Consider casting the dynamic arguments or calling the extension method without the extension method syntax.
How to use variables with GetPropertyValue?
Hi,
How can I use variables to get properties on DynamicPublishedContent? I'm trying to do something like:
This however is giving me the following error msg:
Thanks!
Hi
I think you have to use the Typed Content properties to do that.
try
@Model.Content.GetPropertyValue(someVariable)
Kevin
Hi,
try this
hope this help
Regards,
Samira
is working on a reply...