Hi,
Sorry, this might be a really simple question, but I cant really find the answer in this forum.
But basically in my navigation i need to display a graphic of a key if the page is specified as locked.
So I set up a True/False parameter with an alias of pageIsLocked on each content page.
Now in the XSLT, i need to loop through the pages, and if pageIsLocked is True, then i need to add a graphic to the end.
I currently have the loop through the pages working - as my navigation shows up fine, but i need to somehow, while in that node, check if the page it is referencing has the pageIsLocked property/alias (that i set in its Doc type) to true.
Thanks in Advance for replying, really appreciated.
Regards,
Dale
Thanks to the simplicity of the wiki entry here: http://en.wikibooks.org/wiki/Umbraco/VarioususefulXSLTmethodsin_Umbraco
I was able to get it going. For anyone else trying the same thing, the code is as follows:
Just a quick note about the xslt snippet: you don't need to assign the value to a variable first... can use the same construct as for the umbracoNaviHide check
Navigation Variable Help
Hi,
Sorry, this might be a really simple question, but I cant really find the answer in this forum.
But basically in my navigation i need to display a graphic of a key if the page is specified as locked.
So I set up a True/False parameter with an alias of pageIsLocked on each content page.
Now in the XSLT, i need to loop through the pages, and if pageIsLocked is True, then i need to add a graphic to the end.
I currently have the loop through the pages working - as my navigation shows up fine, but i need to somehow, while in that node, check if the page it is referencing has the pageIsLocked property/alias (that i set in its Doc type) to true.
Thanks in Advance for replying, really appreciated.
Regards,
Dale
Thanks to the simplicity of the wiki entry here:
http://en.wikibooks.org/wiki/Umbraco/VarioususefulXSLTmethodsin_Umbraco
I was able to get it going. For anyone else trying the same thing, the code is as follows:
[code]
[/code]
Hi dalecam,
Just a quick note about the xslt snippet: you don't need to assign the value to a variable first... can use the same construct as for the umbracoNaviHide check
[code]
[/code]
Regards,
/Dirk
Thanks Dirk!
Nice shortcutting. I will use this!
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.