Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • dalecam 20 posts 20 karma points
    Jan 16, 2009 @ 01:26
    dalecam
    0

    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

  • dalecam 20 posts 20 karma points
    Jan 16, 2009 @ 04:48
    dalecam
    0

    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]

Copy Link
  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jan 16, 2009 @ 08:56
    Dirk De Grave
    0

    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

    Copy Link
  • dalecam 20 posts 20 karma points
    Jan 27, 2009 @ 03:25
    dalecam
    0

    Thanks Dirk!
    Nice shortcutting. I will use this!

    Copy Link
  • 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.

  • Please Sign in or register to post replies