Menu/Nav macro in templates not showing all nodes on site
Hey everyone,
I'm running into a small issue that I know is with my template and not the XSLT, but will post both.
I have a very simple horizonal navigation macro on the "master" template no errors but only shows the node its presently on. For example if I'm on the contact page only contactpage will show on the menu. If I'm on About Us page only About Us will show in the menu. I know its something small I'm missing, but its drving me nuts
I have created the following templates based on a hieracy
Master
- HomePage
-StdPage
I have used the same xslt before and it worked fine, which leads me to belive its the way my templates are structured.
<a href="/"> <xsl:value-of select="$currentPage/ancestor-or-self::*/@nodeName"/> </a> </li> <xsl:for-each select="$currentPage/ancestor-or-self::* [@level=$level]/* [@isDoc and string(umbracoNaviHide) != '1']"> <li> <xsl:attribute name="class"> <xsl:if test="$currentPage/@id=@id"> <xsl:text>current</xsl:text> </xsl:if> </xsl:attribute> <a href="{umbraco.library:NiceUrl(@id)}"><xsl:value-of select="@nodeName"/></a> <!-- Drop Down Menu --> <xsl:if test="count(./* [@isDoc and string(umbracoNaviHide) != '1']) > 0"> <ul> <xsl:for-each select="./* [@isDoc and string(umbracoNaviHide) != '1']"> <li> <xsl:if test="$currentPage/ancestor-or-self::node/@id = current()/@id"> <xsl:attribute name="class">current</xsl:attribute> </xsl:if>
<a href="{umbraco.library:NiceUrl(@id)}"><xsl:value-of select="@nodeName"/></a></li> </xsl:for-each> </ul> </xsl:if> <!-- End of Drop Down Menu --> </li> </xsl:for-each> </ul>
Menu/Nav macro in templates not showing all nodes on site
Hey everyone,
I'm running into a small issue that I know is with my template and not the XSLT, but will post both.
I have a very simple horizonal navigation macro on the "master" template no errors but only shows the node its presently on. For example if I'm on the contact page only contactpage will show on the menu. If I'm on About Us page only About Us will show in the menu. I know its something small I'm missing, but its drving me nuts
I have created the following templates based on a hieracy
Master
- HomePage
-StdPage
I have used the same xslt before and it worked fine, which leads me to belive its the way my templates are structured.
My master.master with html removed
My homepage.master with html removed
My XSLT -MainNav
Thanks in advance for everyones help
Carl,
It helps if you could outline some nodes from your content structure (pic?), and output you get from a specific page when the xslt
Looking forward to your info.
Cheers,
/Dirk
Hey Dirk,
Sorry about the late reply. I figured it out. I wasnt putting it in the template correctly. Just needed sleep.
Thanks for your help
is working on a reply...