Announcement

Collapse
No announcement yet.

SectionID variable in outer layout: wont work?

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

    SectionID variable in outer layout: wont work?

    This is my first post so HI everyone!

    I only started working on Actinic so I tend to get lost sometimes. Anyway, what I am trying to do is to highlight the current section of the page in the navigation menu. I am doing it with css styling. To do this, I want to insert and ID attribute to the <body> tag of each section. I want this to be unique so I thought of using :SectionID: variable, however, Actinic wont let me do it as it says:

    "You tried to insert SectionID variable into the Outer Page Layout and it won't work there."

    I tried other variables, like SectionsPageName or Title, however I get the same error with actinic when I try to produce the pages.
    Note that if I insert the Section ID manually into raw html files of the website, everything works.
    Is there any way to prevent Actinic from showing that error?

    #2
    You can use SectionID on an overall layout if you put a blockif around it so it's only evaluated on Section pages. E.g.

    PageType == "Section"

    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22">
    	Section: <actinic:variable name="SectionID" />
    </actinic:block>
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment

    Working...
    X