Add WebCms
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?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" {0}
|
||||
exclude-result-prefixes="msxml umbraco.library {1}">
|
||||
|
||||
<xsl:output method="xml" omit-xml-declaration="yes"/>
|
||||
|
||||
<xsl:param name="currentPage"/>
|
||||
|
||||
<xsl:variable name="minLevel" select="1"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
|
||||
<xsl:if test="$currentPage/@level > $minLevel">
|
||||
<ul>
|
||||
<xsl:for-each select="$currentPage/ancestor::* [@level > $minLevel and string(umbracoNaviHide) != '1']">
|
||||
<li>
|
||||
<a href="{umbraco.library:NiceUrl(@id)}">
|
||||
<xsl:value-of select="@nodeName"/>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
<!-- print currentpage -->
|
||||
<li>
|
||||
<xsl:value-of select="$currentPage/@nodeName"/>
|
||||
</li>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
Reference in New Issue
Block a user