CS1061: 'Realisation' does not contain a definition for 'RealisationTitle' and no accessible extension method 'RealisationTitle' accepting a first argument of type 'Realisation' could be found (are you missing a using directive or an assembly reference?)
I think it is the way it is retrieved, so for children which is a collection of ipublishedcontent so you need to use Value (I think, but I'm quite new to this too :) )
Current document child
Hello !
I'm trying to get a value of a child element on the current page.
I'm trying to do this way :
I don't know why I'm getting an error :
CS1061: 'Realisation' does not contain a definition for 'RealisationTitle' and no accessible extension method 'RealisationTitle' accepting a first argument of type 'Realisation' could be found (are you missing a using directive or an assembly reference?)
What am i doing wrong ?
Thank you :)
try @item.Value("realisationTitle");
Damn that was the same mistake as you pointed out on other of my topic. It's working.
I don't understand why when I put Umbraco.Content, this @item.RealisationTitle works. And why I put Model.Chirldren it doesn't.
Thank you again :p I will probably come again soom for some questions about multilingual selector ahah
I think it is the way it is retrieved, so for children which is a collection of ipublishedcontent so you need to use Value (I think, but I'm quite new to this too :) )
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.