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 have the following xslt, i just wish to display nodeTypeAlias 'content'.
I've seen alot written about the change in this in 4.5 but can't work where to place '/content' on the following
<xsl:for-each select="$currentPage/ancestor-or-self::* [@level=$level]/* [@isDoc and string(umbracoNaviHide) != '1']"> <li> </li></xsl:for-each>
Hi,
You can substitute the * with the nodeTypeAlias of the doctype you want to select. Example:
<xsl:for-each select="$currentPage/ancestor-or-self::* [@level=$level]/content [@isDoc and string(umbracoNaviHide) != '1']">
Another method is to use the local-name() function
<xsl:for-each select="$currentPage/ancestor-or-self::* [@level=$level]/* [@isDoc and string(umbracoNaviHide) != '1'][local-name() = 'content']">
More info: http://our.umbraco.org/wiki/reference/xslt/45-xml-schema/no-more-@nodetypealias
-Tom
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
nodeTypeAlias 4.5
I have the following xslt, i just wish to display nodeTypeAlias 'content'.
I've seen alot written about the change in this in 4.5 but can't work where to place '/content' on the following
Hi,
You can substitute the * with the nodeTypeAlias of the doctype you want to select. Example:
Another method is to use the local-name() function
More info: http://our.umbraco.org/wiki/reference/xslt/45-xml-schema/no-more-@nodetypealias
-Tom
is working on a reply...