[TYPO3] Help understanding TYPO3
JoH
info at cybercraft.de
Fri Oct 12 16:48:31 CEST 2007
> # Normal state properties
> NO.allWrap = <li class="topMenu_unselected"> | </li>
>
> # Enable active state and set properties:
> ACT = 1
> ACT.allWrap = <li class="topMenu_selected"> | </li>
>
> This is what the menu is rendered as:
>
>> Unternehmen | Jobs | News | Suche | Kontakt |
>
> There are two problems with this:
>
> 1: I don' want the | at the start or the end, just in between the
> items
This is a job for optionSplit:
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/3/1/#id3520928
According to the TSref you should change your code to look like this:
# Normal state properties
NO.allWrap = <li> | </li>|*||*|<li class="last"> | </li>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <li class="act"> | </li>|*||*|<li class="act_last"> | </li>
you don't need the "topMenu" in the class of the <li> since you could use
<ul class="topMenu"> and then do a proper cascading.
HTH
Joey
More information about the TYPO3-english
mailing list