[TYPO3] splitting TMENUITEMS
Nagita Karunaratne
Nagita.k at gmail.com
Sat Jun 2 12:24:49 CEST 2007
Christopher Torgalson wrote:
> Hi,
>
> On 6/1/07, Nicola Della Marina <nicola.dellamarina at webformat.com> wrote:
>> Hi,
>>
>> Nagita Karunaratne ha scritto:
>> > Hi,
>> >
>> > How do you split TMENUITEM with a |
>> >
>> > I can add
>> >
>> > NO.after = |
>> >
>> > But that puts a '|' on the last menuitem which I want to avoid.
>>
>
> Because the pipe character ("|") is used as the split token in wraps,
> optionSplit (which is what the syntax above is) will either not work
> or will work unpredictably if you use the actual character. Instead,
> use the appropriate html entity: "|". You can also build allWrap
> (or whichever wrap you're using) with optionSplit, something like
> this:
>
> 1 = TMENU
> 1 {
> noBlur = 1
> wrap = <ul id="navigation">|</ul>
>
> NO {
> allWrap = <li> | | </li> |*| <li> | | </li>
> |*| <li> | </li>
> }
> }
>
Hi Chris,
This works beautifully.
Thanks.
More information about the TYPO3-english
mailing list