Developer forum

Forum » Templates » Accessing subpage content via XSLT

Accessing subpage content via XSLT

Dmitrij Jazel
Reply
Hello DW guys,

I have an interesting question here, (take a look at the attachment)
And imagine that:
1) You have a plain page, and here you want to the list all the subpages. - you could do that with dwnavigation tag and "LiClean.xslt" for example...
2) In addition to that you want not only list all the sub pages, but also display text from the paragparhs they contain...
In theory couldn't that be done, if you are able to access things like page name in xslt, can't I also access paragraph information stored in the page?

what you guys think about it?

Regards,
Dmitrij
Subpage_XSLT.png

Replies

 
Marco Johannesen
Reply
Hmm..

As far as i understand, you can only access the "navigation" through DwNavigation, and you can only include paragraph's content through <!--@Global:Paragraph.Content([ID])-->.

And i don't think you can call that inside DwNavigation.
And you can't access DwNavigation in the template, because its called after (i guess).
Else you could have looped the tag inside each "page".

Only way is to either extend the template, or do it with ajax (run DwNavigation, get name and url - call ajax for each url and insert next to name).

My 5 cent ;-)



 

You must be logged in to post in the forum