Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I need a XSLT help for Umbraco.
My content tree looks like this:
Language 1 SubPage 1 SubPage 2 SubPage 3 Language 2 SubPage a SubPage b SubPage c Language 3 SubPage x SubPage y SubPage z Language 4
I need to make a XSLT which lists all the root nodes(language1, 2, 3 etc) in main content structure Umbraco.
Hope anyone here can help me with this.
Hey,
Add a new XSLT file and select the 'Site Map Example' from the Drop Down, in here there is a variable for 'Level' have a play with it and it should give you a good starting point.
Rich
Hi mInNaL)
Do you need language switcher ?
Something like that will take you all root nodes:
<xsl:for-each select="$currentPage/ancestor-or-self::root/*[parent::root]">
Thanks,
Alex
This might work:
<xsl:for-each select="$currentPage/ancestor::root/*"><!-- Show language nodes --></xsl:for-each>
Jeroen
I have tried that.. but it doesn only return childs of the first parent node (in my case all childe nodes of Language 1)
Note Language 1, 2 and 3.I have tried changing level to 0 still no help.
Could you post a screen shot of your content tree.
maybe you have some problem with publish nodes ?
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.
Continue discussion
List all root pages
I need a XSLT help for Umbraco.
My content tree looks like this:
Language 1
SubPage 1
SubPage 2
SubPage 3
Language 2
SubPage a
SubPage b
SubPage c
Language 3
SubPage x
SubPage y
SubPage z
Language 4
I need to make a XSLT which lists all the root nodes(language1, 2, 3 etc) in main content structure Umbraco.
Hope anyone here can help me with this.
Hey,
Add a new XSLT file and select the 'Site Map Example' from the Drop Down, in here there is a variable for 'Level' have a play with it and it should give you a good starting point.
Rich
Hi mInNaL)
Do you need language switcher ?
Something like that will take you all root nodes:
<xsl:for-each select="$currentPage/ancestor-or-self::root/*[parent::root]">
Thanks,
Alex
This might work:
Jeroen
I have tried that.. but it doesn only return childs of the first parent node (in my case all childe nodes of Language 1)
Note Language 1, 2 and 3.
I have tried changing level to 0 still no help.
Could you post a screen shot of your content tree.
Rich
maybe you have some problem with publish nodes ?
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.