Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Felixx 18 posts 39 karma points
    Sep 03, 2010 @ 09:16
    Felixx
    0

    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.

      <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>

  • Felixx 18 posts 39 karma points
    Sep 06, 2010 @ 01:22
    Felixx
    0

    anyone?? surely other people have run unto this problem.

  • Felixx 18 posts 39 karma points
    Sep 06, 2010 @ 03:28
    Felixx
    0

    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?

     

     

  • Felixx 18 posts 39 karma points
    Sep 06, 2010 @ 03:30
    Felixx
    1

    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.

     

     

Please Sign in or register to post replies

Write your reply to:

Draft