Announcement

Collapse
No announcement yet.

Current Page menu link highlighted

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

    Current Page menu link highlighted

    I guess this must have been addressed before, if anyone can point me in the right direction?
    You have a basic Bochure page menu:

    Code:
    <actinic:block type="BrochurePagesList" >
    <ul>
    <li><actinic:variable name="BrochurePageLink" value="Simple Brochure Page Link" /></li>
    <ul>
    </actinic:block>
    And you want the link for the page that is being viewed to be highlighted/ have a different bgimage, whatever so you have a class="selected"

    Code:
    <ul>
    <li class="selected"><actinic:variable name="BrochurePageLink" value="Simple Brochure Page Link" /></li>
    <ul>
    What condition do you have to put round the class="selected"?
    I tried copying the Brochure page name into page title and having the condition
    Code:
    <actinic:variable name="BrochureName" /> == <actinic:variable name="PageTitle" />
    But no joy.

    Any clues?

    Thanks
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    Did you try the KB before posting, pretty sure it has details with the code required, always worth checking thoroughly in there before posting, quicker to get a solution too.

    Comment


      #3
      Hi Lee. I thought the KB and Community were one forum???
      Jonathan Chappell
      Website Designer
      SellerDeck Website Designer
      Actinic to SellerDeck upgrades
      Graphicz Limited - www.graphicz.co.uk

      Comment


        #4
        Credit to BentleyBloke (http://community.actinic.com/member.php?u=851)
        http://community.actinic.com/showthread.php?t=37276

        AAAAH! Brochure pages... try this in your blockif

        Code:
        (<actinic:variable name="BrochurePageID" /> == <actinic:variable name="MainBrochure::BrochurePageID" />)
        Reply With Quote
        Code:
        <actinic:block type="BrochurePagesList" >
        <ul>
        <li <actinic:block if="%28%3cactinic%3avariable%20name%3d%22BrochurePageID%22%20%2f%3e%20%3d%3d%20%3cactinic%3avariable%20name%3d%22MainBrochure%3a%3aBrochurePageID%22%20%2f%3e%29">style="list-style: none;"</actinic:block>><actinic:variable name="BrochurePageLink" value="Simple Brochure Page Link" /></li>
        <ul>	
        </actinic:block>
        Jonathan Chappell
        Website Designer
        SellerDeck Website Designer
        Actinic to SellerDeck upgrades
        Graphicz Limited - www.graphicz.co.uk

        Comment


          #5
          Originally posted by graphicz View Post
          Hi Lee. I thought the KB and Community were one forum???
          I didn't think i'd said they weren't?

          Comment

          Working...
          X