I'm translating to the new API (or giving it a damn good try) but I'm coming unstuck in various places.
Where I was previously using IPublishedContent, I now have IContent instead, however IContent has no Children property. How do I achieve the same kind of thing in the new API?
I found this out the other day - it works, but it's a lot less discoverable than the old method. I tried to post the fix yesterday but 'our' was refusing to take my submissions for some odd reason.
This is workable for me, I'm really stuck now figuring out how to get the URL back from the IContent interface.
Umbraco 6 - New API - Children?
I'm translating to the new API (or giving it a damn good try) but I'm coming unstuck in various places.
Where I was previously using IPublishedContent, I now have IContent instead, however IContent has no Children property. How do I achieve the same kind of thing in the new API?
This seems pretty fundamental.
Hope this helps:
Use ApplicationContext.Current.Services.ContentService
Suppose you have an object of IContent say "node"
I found this out the other day - it works, but it's a lot less discoverable than the old method. I tried to post the fix yesterday but 'our' was refusing to take my submissions for some odd reason.
This is workable for me, I'm really stuck now figuring out how to get the URL back from the IContent interface.
me too stuck on getting Url form IContent object.
Have one workaround but not sure if new APIs have any good solutiion for that: umbraco.library.NiceUrl(int)
is working on a reply...