I'm trying to build a recursive menu based on a modification to the recursive menu xslt snippet on this site. It seems to work ok, apart from it's displaying nodes which should be hidden in the navigation. It looks like the umbracoNaviHide is not working.
When I use one of the other navigation xslt macros, it works fine. I've cut and pasted the relevant line from another xslt file and it still doesn't work in the recursive one.
hope someone can spot what will probably turn out to be a obvious mistake! I've been staring at it too long to see the wood from the trees, and I'm a newbie at xslt too, which doesn't help.
You need to create a field under which you will name the Alias as umbracoNaviHide, and choose the True/False (type). Then straight forward choose any of the content node you want to hide from your navigation and check it.
yes, I already have a field in Generic Properties which has the alias umbracoNaviHide (true/false). Some of my pages are set to True, but these are still showing when I use the XSLT listed above.
When I use a different XSLT such as the umbTopNavigation.xslt it works fine, and doesn't show the hidden nodes. This is why I'm confused where the problem is.
umbracoNaviHide not working
Hi all
I'm trying to build a recursive menu based on a modification to the recursive menu xslt snippet on this site. It seems to work ok, apart from it's displaying nodes which should be hidden in the navigation. It looks like the umbracoNaviHide is not working.
When I use one of the other navigation xslt macros, it works fine. I've cut and pasted the relevant line from another xslt file and it still doesn't work in the recursive one.
Here is my code:
hope someone can spot what will probably turn out to be a obvious mistake! I've been staring at it too long to see the wood from the trees, and I'm a newbie at xslt too, which doesn't help.
cheers
Rory
Double check your document type filed if you have havent done any typying error in your alias for the umbracoNaviHide.
Hi Fuji,
could you please explain what you mean? I've not edited any of the Generic Properties for any of my standard document types, if that's what you mean?
cheers
Rory
Hi Roy,
You need to create a field under which you will name the Alias as umbracoNaviHide, and choose the True/False (type). Then straight forward choose any of the content node you want to hide from your navigation and check it.
//fuji
Hi Fuji
yes, I already have a field in Generic Properties which has the alias umbracoNaviHide (true/false). Some of my pages are set to True, but these are still showing when I use the XSLT listed above.
When I use a different XSLT such as the umbTopNavigation.xslt it works fine, and doesn't show the hidden nodes. This is why I'm confused where the problem is.
Rory
Rory am not sure but can you try removing
to
is working on a reply...