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.
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.
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]
You should add it to for-each like this
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
Try this
is working on a reply...