Copied to clipboard

Flag this post as spam?

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


  • SaphuA 124 posts 87 karma points
    Aug 27, 2009 @ 23:17
    SaphuA
    0

    NiceUrl results

    Hiyah,

    I have the following code in two xslt files, one for the main menu and the other for sub-menu's:
      <a href="{umbraco.library:NiceUrl($node/@id)}">
       <xsl:value-of select="$node/@nodeName" />
      </a>

    Now I have the following node structure:
    [Root]
    [Root]/[Website]
    [Root]/[Website]/[Home]
    [Root]/[Website]/[Home]/[Home]

    The result for the sub menu is:
    website/home/home.aspx
    But strangely enough the one for the main menu is:
    website/home.aspx

    Why?!

  • SaphuA 124 posts 87 karma points
    Aug 27, 2009 @ 23:22
    SaphuA
    0

    Never mind the above post, I know what is going on and the results are correct.

    However, I have a umbracoRedirect property on the first [Home] which should redirect to [Home]/[Home] and this appears not to be working in all cases.

  • SaphuA 124 posts 87 karma points
    Aug 28, 2009 @ 01:32
    SaphuA
    0

    ... Aaand fixed by recreating and republishing some nodes. Seems like Umbraco wasn't handling them very well.

Please Sign in or register to post replies

Write your reply to:

Draft