Hello, hello!
I want to do something very simple, same as it is done in the documentation example, and have no idea why it is not working..
It is about simple menu (list and css), which I saved as a snippet, and all works well except that I cannot get the the CSS style for the active link/page to work. And class="active" style is supposed only to change background color, nothing else….
I started with using exactly the same code from Aurelius page, which goes like this:
<li >
<a href="<cms:link 'index.php' />">
<cms:if k_page_name=='index.php'>class="active"</cms:if>
<span class="bold">Home</span></a>
</li>
Would appreciate a lot an explanation, what do I do wrong....
thanks in advance
Tanja
I want to do something very simple, same as it is done in the documentation example, and have no idea why it is not working..
It is about simple menu (list and css), which I saved as a snippet, and all works well except that I cannot get the the CSS style for the active link/page to work. And class="active" style is supposed only to change background color, nothing else….
I started with using exactly the same code from Aurelius page, which goes like this:
<li >
<a href="<cms:link 'index.php' />">
<cms:if k_page_name=='index.php'>class="active"</cms:if>
<span class="bold">Home</span></a>
</li>
Would appreciate a lot an explanation, what do I do wrong....
thanks in advance
Tanja