I've got a standard menu structure on the go which builds a menu for top level items and any children that they may have. Everything is normal apart from two of the menu items (when clicked) should display a bespoke menu that relates only to them. So I want to see the normal menu apart from when the current page is id 1616 so.....
This works fine if the current id is 1616 but it doesn't work if the current document is a child of node id 1616 (which is what I want it to do!) - it doesn't do anything. Can anybody point me in the right direction please?
You can use $currentPage/@path to check is the current pages' path contains "1616". I have done it mostly in Razor, but it is possible to do in XSLT too.
Create bespoke menu based on node id
Hi Folks,
I've got a standard menu structure on the go which builds a menu for top level items and any children that they may have. Everything is normal apart from two of the menu items (when clicked) should display a bespoke menu that relates only to them. So I want to see the normal menu apart from when the current page is id 1616 so.....
This works fine if the current id is 1616 but it doesn't work if the current document is a child of node id 1616 (which is what I want it to do!) - it doesn't do anything. Can anybody point me in the right direction please?
Thanks,
Craig
Hi Craig
You can use $currentPage/@path to check is the current pages' path contains "1616". I have done it mostly in Razor, but it is possible to do in XSLT too.
Cheers Kasper,
That's the way I went in the end :)
is working on a reply...