Copied to clipboard

Flag this post as spam?

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


  • bhunt 18 posts 22 karma points
    Feb 13, 2009 @ 04:31
    bhunt
    0

    Hide Specific Node Type from Horizontal Drop Down Menu

    Hi-

    I have created a staff listing page that lists all staff members for an organization. The DocumentType is 'Staff Member' with an alias of 'StaffMember'. I have a top level 'Staff Page' that l want to appear on the main navigation, but I want to hide the individual Staff Members from the navigation as they are all rolled up on the main staff page.

    Here is my XSLT:
    [code]


    ]>
    <>
    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxml="urn:schemas-microsoft-com:xslt"
    xmlns:umbraco.library="urn:umbraco.library"
    exclude-result-prefixes="msxml umbraco.library">





















  • [/code]

    I figured I could just add a test case to say if @nodeTypeAlias='StaffMember' then don't show that item in the navigation, but I cannot seem to find the right place to put it.

    I tried modifying the XSLT like this
    [code]
Copy Link
  • Petr Snobelt 923 posts 1535 karma points
    Feb 13, 2009 @ 09:49
    Petr Snobelt
    0

    You should add it to for-each like this

    Copy Link
  • bhunt 18 posts 22 karma points
    Feb 14, 2009 @ 13:38
    bhunt
    0

    Thanks Petr-

    I now have my select like this:
    [code]


  • 47:
    [/quote]

    I tried moving the brackets around, but no luck.

    Any other thoughts?
    Thanks,
    Brad

  • Copy Link
  • Petr Snobelt 923 posts 1535 karma points
    Feb 14, 2009 @ 14:59
    Petr Snobelt
    0

    Try this

    Copy Link
  • Please Sign in or register to post replies

    Write your reply to:

    Draft