Hi all,
I am trying to develop a PHP based Site Map Section List that can automatically assign an active class to the link of the current page and an inactive class to all the other links. The idea stems from the following link: http://brainstormsandraves.com/archi...27/navigation/
My idea was to use
to create a variable that has a value of books in the books section, computers in computers, etc. Unfortunately for some reason this isn't parsing - it does when the $thisPage value is a typed word therefore I assume it has a problem with that variable.
The next part was to use use
unfortunately this is not working and now I am rather stuck on this! I can't help but think that the variable SectionName is being used to often. The way it is used to identify the individual section title in the INNERLAYOUT and all the sections in the SiteMap Section List seems really interesting to me however I can't find the variable in the variable tab and thus I am struggling to discover how SectionName is being used so differently in the two layouts.
Has anyone got any thoughts on how I can go about creating this menu as it is driving me nuts
Cheers in advance
I am trying to develop a PHP based Site Map Section List that can automatically assign an active class to the link of the current page and an inactive class to all the other links. The idea stems from the following link: http://brainstormsandraves.com/archi...27/navigation/
My idea was to use
Code:
<actinic:block php="true" > $thisPage='<actinic:variable name="SectionName" />'; </actinic:block>
The next part was to use use
Code:
<actinic:block php="true" > if ($thisPage=='<actinic:variable name="SectionName" />') {echo '<actinic:variable name="SectionName" />';} else {echo '<a href="/"><actinic:variable name="SectionName" /></a>';} </actinic:block>
Has anyone got any thoughts on how I can go about creating this menu as it is driving me nuts
Cheers in advance
Comment