'IPublishedContent' does not contain a definition for 'GetPropertyValue' and no accessible extension method 'GetPropertyValue' accepting a first argument of type 'IPublishedContent' could be found (are you missing a using directive or an assembly reference?)
'IPublishedContent' does not contain a definition for 'GetPropertyValue'
Hi everyone,
I followed this guide: https://codeshare.co.uk/blog/how-to-create-a-carousel-in-umbraco-using-nested-content-and-bootstrap/ to implement a slideshow made as a Nested Content in a Composition.
The following line fails:
The alias is taken from my doc type:
The error I get:
I have tried to do some research and attempted the advices given in: https://github.com/umco/umbraco-nested-content/blob/develop/docs/assets/pdf/Nested-Content--Developers-Guide-v1.0.pdf but with no success unfortunately.
Do you guys have any advice?
Hi, If you are using Umbraco 8 the syntax for fetching values is different it will be like
Above can be used for fetching media and node values, if its a nested content type element then the syntax will be
Hope that helps.
item. ?
is working on a reply...