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 menu that only links on the last nodes. all other menu items shall only expand with som java script.
Menu - submenu - subsubmenu (with link) - submenu 2 - subsubmenu 1 (with link)
Thanks very much in advance!
something like this?
<xsl:variable name="hasChildren" select="umbraco.library:GetXmlNodeById(@id)/* [@isDoc]"/> <xsl:if test="count($hasChildren) = 0"> <!-- create the link --> </xsl:if>
you can loop through all the sub menu item as:
<xsl:for-each select="$currentPage//*"> <xsl:if test="position() = last()"> <!-- make a link --> </xsl:if></xsl:for-each>
Thanks very much for your replies!
Hi pnr
If you are using the solution from praveity, be sure to include the [@isDoc] in the nodes you are running through to make sure you are only running through actual nodes. Otherwise you'll also run through all of the document properties.
Just a small note :)
/Kim A
Kim,
Thanks for the advice. Its so true of you.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Need a menu only with links on the last nodes
I need a menu that only links on the last nodes. all other menu items shall only expand with som java script.
Menu
- submenu
- subsubmenu (with link)
- submenu 2
- subsubmenu 1 (with link)
Thanks very much in advance!
something like this?
<xsl:variable name="hasChildren" select="umbraco.library:GetXmlNodeById(@id)/* [@isDoc]"/>
<xsl:if test="count($hasChildren) = 0">
<!-- create the link -->
</xsl:if>
you can loop through all the sub menu item as:
Thanks very much for your replies!
Hi pnr
If you are using the solution from praveity, be sure to include the [@isDoc] in the nodes you are running through to make sure you are only running through actual nodes. Otherwise you'll also run through all of the document properties.
Just a small note :)
/Kim A
Kim,
Thanks for the advice. Its so true of you.
is working on a reply...