I'm using jquery treeview to create a help site for our product. I'm using XSLT to render out the navigation menu and letting jQuery.Treeview do the rest.
I need to render the whole treeview each time (for each page) and obviously highlight the current page. A node in the treeview can either be a link node to that page, or a group node that when selected simply expands down revealing the options.
I would check the casing of your alias, as in your XSLT you have it as both "IsHelpPage" and "isHelpPage". XSLT is case sensitive, so you'll need to make sure the alias you use in your XSLT is exactly the same as that defined on your doc type.
Creating a treeview navigation
I'm using jquery treeview to create a help site for our product. I'm using XSLT to render out the navigation menu and letting jQuery.Treeview do the rest.
I need to render the whole treeview each time (for each page) and obviously highlight the current page. A node in the treeview can either be a link node to that page, or a group node that when selected simply expands down revealing the options.
For example:
+ Guide
+ Reporting
- Call Rate
- Account Visits
+ Messages
- Inbound
- Outbound
Those at the bottom of the tree branch are links. I have created a property in the master document type of 'IsHelpPage' of type true false.
Unfortunately I can't pick up this property as I look through each page in XSLT. I have the following code:
Each time the value of the IsHelpPage property is false.
Any help on this would be greatly appreciated.
Hi Ryan,
I would check the casing of your alias, as in your XSLT you have it as both "IsHelpPage" and "isHelpPage". XSLT is case sensitive, so you'll need to make sure the alias you use in your XSLT is exactly the same as that defined on your doc type.
Matt
Hi Matt,
Thanks for the reply. I just left that in as I was trying both cases in case that was my issue. Unfortunately neither work still.
Ryan
Ok, just having another look, it seems as though you are using Umbraco 4.5 schema. Is this correct?
If so, doc type properties are no longer stored on "data" nodes, so rather than
It should now just be
So maybe try switching your if statement to
Many thanks
Matt
Matt you're a legend. That was exactly the problem. I didn't realise this had changed in the new version.
Kind regards,
Ryan
No problem. Glad you've got it working.
Many thanks
Matt
is working on a reply...
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.