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
hi,
i am unsure of why this does not work..it errors on yhe href=umbraco.niceurl part.. if i just have a href = {@id} instead it works and outputs the correct id, slightly lost here, only happens with the 4.5 XML.
<xsl:variable name="rootNode" select="$currentPage/ancestor-or-self::* [@level=1]" /><xsl:for-each select="$rootNode/* [string(umbracoNaviHide) != '1']"> <li> <a href="{umbraco.library:NiceUrl(@id)}"> <span>About</span> </a> </li></xsl:for-each>
anyone?? surely other people have run unto this problem.
hi all after more investigation i found that if i change the for loop.specifically this line:
<xsl:for-each select="$rootNode/* [string(umbracoNaviHide) != '1']">
to this line :
<xsl:for-each select="$rootNode/* [@isDoc and string(umbracoNaviHide) != '1']">
then it works, any idea why we cant only check for umbracoNavi hide without having the @isDoc there?
ok got it, for anyone else with this issue, see http://our.umbraco.org/forum/core/41-feedback/9277-New-xml-schema---can-someone-explain-isDoc for the solution.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
4.5 XSLT umbraco.Nice Url
hi,
i am unsure of why this does not work..it errors on yhe href=umbraco.niceurl part.. if i just have a href = {@id} instead it works and outputs the correct id, slightly lost here, only happens with the 4.5 XML.
anyone?? surely other people have run unto this problem.
hi all after more investigation i found that if i change the for loop.specifically this line:
to this line :
then it works, any idea why we cant only check for umbracoNavi hide without having the @isDoc there?
ok got it, for anyone else with this issue, see http://our.umbraco.org/forum/core/41-feedback/9277-New-xml-schema---can-someone-explain-isDoc for the solution.
is working on a reply...