The GetPropertyValue extension method is under the "Umbraco.Web" namespace, my guess would be that the Partial View can not resolve it, so would need to be included at the top...
The PublishedContentBase inherits from IPublishedContent, so with the "Umbraco.Web" namespace reference, it should recognise the GetPropertyValue extension method.
On a side-note, this isn't really related to Nested Content, (since you haven't actually got the value from Nested Content yet).
Umbraco.Web.Models.PublishedContentBase' does not contain a definition for 'GetPropertyValue'
Im using nested content on 7.3. Using the example form the docs:
Replacing Model with CurrentPage as im directly on a template. But i get the following error:
Any idea why?
Hi Claus,
The
GetPropertyValue
extension method is under the "Umbraco.Web" namespace, my guess would be that the Partial View can not resolve it, so would need to be included at the top...I hope this helps?
Cheers,
- Lee
Didn't do it. I can use:
though
Hmmm, strange.
The
PublishedContentBase
inherits fromIPublishedContent
, so with the "Umbraco.Web" namespace reference, it should recognise theGetPropertyValue
extension method.On a side-note, this isn't really related to Nested Content, (since you haven't actually got the value from Nested Content yet).
Cheers,
- Lee
Hmm ok, well i got the data i needed with
Thats the main point. Thanks anyway :)
I thought the problem was with the line before the for-loop, with
CurrentPage
?Anyway, cool that you've got it sorted :-)
Cheers,
- Lee
is working on a reply...