I am trying to implement a CSS horizontal navigation bar in a new website design.
I have managed to get the navigation bar in place and the hover state working (colour changes grom black to red when hovered over), but would like to get the colour to stay red when the page is selected/active. I can force the button red using class="current" (current is set in the actinic stylesheet to display the red background.
What I have tried to do unsuccesfully is create a BlockIf statement that will only apply the
when a particular page is active.
I have tried using the variable "PageType", which I can get to work for PageType = "Section" but not PageType = "Search" or PageType = "Terms And Conditions". I have also considered using the "PageTitle" variable.
What other variables could I use, or should I create my own variable. I have searched this forum, the knowledgebase and the help files.
The nav bar can be seen in Test Mode at: http://www.golfteewarehouse.co.uk/acatalog/test/
I am currently using the "Design Wizard" theme on V9
I have managed to get the navigation bar in place and the hover state working (colour changes grom black to red when hovered over), but would like to get the colour to stay red when the page is selected/active. I can force the button red using class="current" (current is set in the actinic stylesheet to display the red background.
Code:
<a href="<actinic:variable name="InfoURL" />" target="_self" class="current"><actinic:variable name="InfoText" /></a>
class="current"
I have tried using the variable "PageType", which I can get to work for PageType = "Section" but not PageType = "Search" or PageType = "Terms And Conditions". I have also considered using the "PageTitle" variable.
What other variables could I use, or should I create my own variable. I have searched this forum, the knowledgebase and the help files.
The nav bar can be seen in Test Mode at: http://www.golfteewarehouse.co.uk/acatalog/test/
I am currently using the "Design Wizard" theme on V9
Comment