Unfortunately IPublishedContent itself has not really been documented yet (this is it) and this documentation would also include the extension methods and that they are extension methods. I know it is on the list to be documented soon, but there are never enough hours in the day! :-)
Umbraco.TypedContent() - no decendants?
Hi all,
In WebApi backend code I'm trying to access the published content using strong typed method.
Then I want to find all decendants - but what works in razor doesnt work here...
In razor I would do:
But It seems that Decendants is not avail?
best
Jesper
Something about an extension?
best
Jesper
@using Umbraco.Web;
maybe?And add a reference to umbraco.dll
BINGO! Thanks Jeavon. That was not obvious to me :)
Awesome, it's because most of those methods are extension methods so you need to the reference.
Thx. Do you know if its mentioned anywhere?
It's surely an issue for anyone not knowing - and that will push them towards less fantastic code :)
best
Jesper
Unfortunately IPublishedContent itself has not really been documented yet (this is it) and this documentation would also include the extension methods and that they are extension methods. I know it is on the list to be documented soon, but there are never enough hours in the day! :-)
is working on a reply...