Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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]