Output XML For Entire Site Options
VirtualRichard
Posted: Friday, March 07, 2008 6:00:31 PM

Rank: Fanatic

Joined: 9/17/2007
Posts: 264
Location: London, UK.
Is it possible to get hold of the entire in-memory XML document for use and abuse in XSLT and not just $currentPage?

I say this for a site that has multiple documents at the Content level (in other words not just a single heirarchy descended from a home page).

Thanks,

Richard


2 * 3 * 3 * 37 : The prime factorisation of The Beast.
drobar
Posted: Friday, March 07, 2008 6:30:29 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,698
Location: KY, USA
Check out the umbraco.library:GetXmlAll() function. Or, you can use the umbraco.library:GetXmlNodeById() and specify the node as "-1", which means the entire content tree.

cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.