Copied to clipboard

Flag this post as spam?

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


  • Felix 46 posts 67 karma points
    Jun 25, 2010 @ 11:50
    Felix
    0

    related links, deleted and unpublished items

    hi,

    is it at all possible to get related links to omit links to internal pages  that have been unpublished or deleted?

    Im using the current Related Links XSLT template.

  • Felix 46 posts 67 karma points
    Jul 14, 2010 @ 04:09
    Felix
    0

    anyone?? :)

  • Jan Nielsen 1 post 21 karma points
    Dec 04, 2010 @ 03:45
    Jan Nielsen
    0

    Try change in your xslt the search condition:

    xsl:for-each select="$currentPage/* [name() = $propertyAlias and not(@isDoc) and string(umbracoNaviHide) != '1']/links/link[@type='external' or umbraco.library:NiceUrl(@link)!='#']" > 

    I added the bold underlined part and now it works for me. The NiceUrl returns # when the document isn't unpublished or is deleted.

Please Sign in or register to post replies

Write your reply to:

Draft