Copied to clipboard

Flag this post as spam?

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


  • Craig O'Mahony 364 posts 918 karma points
    Jun 30, 2013 @ 15:42
    Craig O'Mahony
    0

    Exclude certain documents from Menu

    Hi I've had a scout around the fourms but can't seem to get this working...

    Basically I've a menu where the items at level two can either be a 'textpage' or a 'FooterFolder' and I'm trying to build a menu that excludes the Footer Folder doc types.

    Here's what shows everything.

    <xsl:for-each select="$homeNode/* [@isDoc and @level = 2 and string(umbracoNaviHide) != '1']">

    And here's what I thought would work

    <xsl:for-each select="$homeNode/* [@isDoc and @level = 2 and string(umbracoNaviHide) != '1' and @nodeTypeAlias!='FooterFolder']">

    But this shows nothing on the menu using this.

    Could anybody shed any light please?

    Thanks,

    Craig

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jun 30, 2013 @ 18:50
    Dennis Aaen
    101

    Hi Graig

    I tjink this line of XSLT should do the job for you.

    <xsl:for-each select="$homeNode/* [@isDoc and @level = 2 and string(umbracoNaviHide) != '1' ][not(self::FooterFolder)]">

    /Dennis

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jul 03, 2013 @ 21:10
    Dennis Aaen
    1

    Hi Craig,

    I just want to know if you managed to solve the issue? could you use my suggestion, how to exclude a documenttype from your menu. Or did you find another solution to solve it?

    /Dennis

  • Craig O'Mahony 364 posts 918 karma points
    Jul 04, 2013 @ 10:07
    Craig O'Mahony
    0

    That worked an absolute treat! (Sorry it took a while to reply, didn't realise that you'd posted a response)

    Dennis, you are a star!

    Thanks,

    Craig

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jul 04, 2013 @ 13:43
    Dennis Aaen
    0

    Hi Craig,

    I glad that you could use my suggestion. The reason why you didn't realise that I have posted a response, I because there have been, an issue with the mail notification when you reply a comment to a topic. I reported the bug in to the Umbraco team 2 days ago, and the bug was solved really quickly.

    So thumbs up for the Umbraco team to take action quickly. :)

    /Dennis

  • 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