Copied to clipboard

Flag this post as spam?

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


  • MartinB 411 posts 512 karma points
    Jun 12, 2011 @ 15:13
    MartinB
    0

    Remove parent from NiceUrl - New Schema

    Is it possible through xpath to remove a parent node/folde from the url returned by a niceurl contentpicker?

    Structure:

    Homepage
      - Highlights
         - One
         - Two
      - Another page

    The page One has a contentpicker link property that links to "Another page", but niceurl returns "/highlights/Another-page.aspx"

    I would like to have it return domain.com/another-page.aspx

    Current XSLT where i have tried messing about with xpath, but i can't seem to get it to go to the root and at the same time maintain "Another-page" in the url:

    Xslt:

    <a href="{umbraco.library:NiceUrl(@id)}" class="highlightLink">
        <xsl:value-of select="highlightLinkText"/>..
    </a>
  • MartinB 411 posts 512 karma points
    Jun 12, 2011 @ 15:34
    MartinB
    0

    Nevermind, i'm truly mentally challenged! :D

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies