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
hello friends
here is the code of my menu which i set into xslt but problem is that i did'nt get sub menu after put macro
<!-- start writing XSLT --> <!--<div class='wsite-menu-wrap' style='display:none'>--> <ul class="wsite-menu" > <xsl:for-each select="$currentPage/ancestor-or-self::*/* [string(umbracoNaviHide) != '1' and @level = 2 ]"> <span class="wsite-menu-title"> <li class="wsite-nav-0"> <xsl:if test="$currentPage/@id=@id or ($currentPage/@parentID=@id) or ($currentPage/parent::*/@parentID=@id)"> <xsl:attribute name="class">wsite-menu-wrap</xsl:attribute> </xsl:if> <strong> <a> <xsl:attribute name="href"><xsl:value-of select="umbraco.library:NiceUrl(@id)"/></xsl:attribute> <xsl:value-of select="@nodeName" /> </a> </strong> <!-- <xsl:if test="count(child::* [string(umbracoNaviHide) != '1' and @level <= 7 ]) > 0"> <div class="navigation" style=""> <xsl:call-template name="Subchild"> </xsl:call-template> </div> </xsl:if>--> </li> </span></xsl:for-each></ul> <!--</div>--> </xsl:template> <xsl:template name="Subchild"> <xsl:if test="count(child::* [string(umbracoNaviHide) != '1' and @level <= 7 ]) > 0"> <!-- <div class='wsite-menu-wrap' style='display:none'>--> <ul > <xsl:for-each select="child::* [string(umbracoNaviHide) != '1' and @level <= 7 ]"> <span class="wsite-menu-title"> <li id="active" class="wsite-nav-0" style="position: relative;"> <xsl:if test="$currentPage/@id=@id or ($currentPage/@parentID=@id) or ($currentPage/parent::*/@parentID=@id)"> <xsl:attribute name="class">wsite-menu-wrap</xsl:attribute> </xsl:if> <a> <xsl:attribute name="href"> <xsl:value-of select="umbraco.library:NiceUrl(@id)"/> </xsl:attribute> <xsl:value-of select="@nodeName"/> </a> <xsl:call-template name="Subchild"> </xsl:call-template> </li> </span> </xsl:for-each> </ul> <!-- </div>--> </xsl:if>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
submenu not dispaly in xslt
hello friends
here is the code of my menu which i set into xslt but problem is that i did'nt get sub menu after put macro
<!-- start writing XSLT -->
<!--<div class='wsite-menu-wrap' style='display:none'>-->
<ul class="wsite-menu" >
<xsl:for-each select="$currentPage/ancestor-or-self::*/* [string(umbracoNaviHide) != '1' and @level = 2 ]">
<span class="wsite-menu-title">
<li class="wsite-nav-0">
<xsl:if test="$currentPage/@id=@id or ($currentPage/@parentID=@id) or ($currentPage/parent::*/@parentID=@id)">
<xsl:attribute name="class">wsite-menu-wrap</xsl:attribute>
</xsl:if>
<strong>
<a>
<xsl:attribute name="href"><xsl:value-of select="umbraco.library:NiceUrl(@id)"/></xsl:attribute>
<xsl:value-of select="@nodeName" />
</a>
</strong>
<!-- <xsl:if test="count(child::* [string(umbracoNaviHide) != '1' and @level <= 7 ]) > 0">
<div class="navigation" style="">
<xsl:call-template name="Subchild">
</xsl:call-template>
</div>
</xsl:if>-->
</li>
</span>
</xsl:for-each>
</ul>
<!--</div>-->
</xsl:template>
<xsl:template name="Subchild">
<xsl:if test="count(child::* [string(umbracoNaviHide) != '1' and @level <= 7 ]) > 0">
<!-- <div class='wsite-menu-wrap' style='display:none'>-->
<ul >
<xsl:for-each select="child::* [string(umbracoNaviHide) != '1' and @level <= 7 ]">
<span class="wsite-menu-title">
<li id="active" class="wsite-nav-0" style="position: relative;">
<xsl:if test="$currentPage/@id=@id or ($currentPage/@parentID=@id) or ($currentPage/parent::*/@parentID=@id)">
<xsl:attribute name="class">wsite-menu-wrap</xsl:attribute>
</xsl:if>
<a>
<xsl:attribute name="href">
<xsl:value-of select="umbraco.library:NiceUrl(@id)"/>
</xsl:attribute>
<xsl:value-of select="@nodeName"/>
</a>
<xsl:call-template name="Subchild">
</xsl:call-template>
</li>
</span>
</xsl:for-each>
</ul>
<!-- </div>-->
</xsl:if>
is working on a reply...