I have my nav reading my content pages and they come out like this:
Page1
Page2
Page3
Page4
Page5
My boss wants it like this:
Section 1 Page1 Page2
Section 2 Page3
Section 3 Page4 Page5
The sections are not content pages. I'm guessing I would add properties to my document type to specify which section these should go in. I'm not sure who to write this in XSLT though, I'm a newb :(.
Structured Navigation?
I have my nav reading my content pages and they come out like this:
Page1
Page2
Page3
Page4
Page5
My boss wants it like this:
Section 1
Page1
Page2
Section 2
Page3
Section 3
Page4
Page5
The sections are not content pages. I'm guessing I would add properties to my document type to specify which section these should go in. I'm not sure who to write this in XSLT though, I'm a newb :(.
Here's what I have so far:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"
exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<!-- The fun starts here -->
<ul>
<xsl:for-each select="$currentPage/node [string(data [@alias='umbracoNaviHide']) != '1']">
<li>
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="@nodeName"/>
</a>
</li>
</xsl:for-each>
</ul>
</xsl:template>
</xsl:stylesheet>
Thanks!
is working on a reply...