Can you guys help with a similar problem. On another page i need to count the children of another node. But cant seem to get it working with the code below:
<xsl:paramname="currentPage"/> <xsl:paramname="calender"select="/macro/calender"/> <xsl:templatematch="/">
ID: <xsl:copy-ofselect="$calender"/> <br />
Children test:<xsl:value-ofselect="count($calender/*[@isDoc][not(umbracoNaviHide = 1)])"/> <br />
Children test 2: <xsl:value-ofselect="count($calender/child::*[@isDoc][not(umbracoNaviHide = 1)])"/>
Get children of current page
Im trying to retrieve subpages of the current page and displaying a list with them.
I can only retrieve the sub nodes with:
I can not use below like on the umbraco wiki example
And furthermore im not able to insert href with:
My XSLT:
Can anyone see what im doing wrong?
Thanks in advance
/Ryan
Hi Ryan,
Change your XSLT to
Hi Ryan,
Please check the xslt examples of new updated schema (U4.5+) here http://our.umbraco.org/wiki/reference/xslt/45-xml-schema/xslt-examples-updated-to-new-schema.
Thanks
PTamang
Hi
Ahh outdated wiki page :)
Thanks a lot both.
Can you guys help with a similar problem. On another page i need to count the children of another node. But cant seem to get it working with the code below:
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.