Announcement

Collapse
No announcement yet.

Menu item changes to constant colour in relevant section?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Menu item changes to constant colour in relevant section?

    Hi folks,

    Sorry to be a pain, has anyone managed to change a menu item to a different colour (the 'you are in this section' type thing) using Actinic's conditions?

    I had hoped there would be a 'ThisSectionIs' type variable to use for a comparison with 'SectionName' to change a change a css class.
    However there is not such variable that I can find, and 'SectionName' is used multiple times and appears to be re-set after being written to the page meaning that it cannot be used, except in a comparison with another variable.

    I created a variable with a prompt in the section tabs, that I entered the section name into, however this becomes unwieldy when using it with subsections of the main (relevant) section, and is somewhat against the 'automatic' nature of the menu.

    Any advice gratefully received.
    "OK Venus?"
    "OK Steve!"
    "Right then, lets go!

    #2
    Ok, folks for future reference the answer is as follows: -
    <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionID%22%20%2f%3e%20%3d%3d%20%3cactinic%3avariable%20name%3d%22MainSection%3a%3aSectionID%22%20%2f%3e">
    !!!
    </actinic:block>
    Many thanks to Chris Dicken for this.
    "OK Venus?"
    "OK Steve!"
    "Right then, lets go!

    Comment

    Working...
    X