[TYPO3-english] TMENU with different class
Andreas Burg
typo3 at andreasburg.de
Mon Nov 10 19:53:38 CET 2008
Hello Patrik,
> ex.menu:
> MENU (html):
>
> <ul>
> <li class="yellowcorner-yellow"/>
> <li><a href="">HOME</a></li>
>
> <li class="yellowcorner-yellow"/>
> <li><a href="">BLOG</a></li>
>
>
> <li class="yellowcorner-yellow"/>
> <li><a href="">CONTACT</a></li>
>
> <li class="greencorner-yellow"/> //different class, because
> is selected
> <li class="green"><a href="">NEWS</a></li>
here you need a next UL for the 2. level
> <li class="greensep"><a href="">Category1</a></li>
> <li class="greensep"><a href="">Category2</a></li>
> <li class="greensep"><a href="">Category3</a></li>
> <li class="yellowcorner-green"/>
>
> <li class="yellowcorner-yellow"/>
> <li><a href="">SITEMAP</li>
>
> <li class="yellow-fin"/> //if is selected user different class: <li
> class="green-fin"/>
>
> </ul>
validate your HTML to see your errors
> ex. MENU:
> HOME
> BLOG
> CONTACT
> NEWS
put next 3 pages in a subfolder in BE and use 2. level to create the menu here
> Category1
> Category2
> Category3
> SITEMAP
use optionSplit (read in TSref) to create different classes on different positions. Use the NO, CUR,
ACT state for MENU items to create different classes for different states.
Andreas
More information about the TYPO3-english
mailing list