[Typo3] TMENU split menu-text and add class-param

Peter Russ peter.russ at 4many.net
Wed Sep 7 13:45:13 CEST 2005


Henry Wilhelm wrote:

[...]
> lib.subNavList = HMENU
> lib.subNavList {
>    entryLevel = 1
>    1 = TMENU
>    1.wrap = <dl>|</dl>
>    1.NO {
>        allWrap = <dt>|</dt>
>        stdWrap.split {
>            token = |
>            cObjNum = 1
>            1.current = 1
>            1.wrap = |<br />
>        }
>    }
> }
> 
> But now, i would like to add a "class"-param especially and only for 
> very long pagetitles with separators in it (<a href="index.php?id=200" 
> class="longmenu">Very long page title<br />for this page</a>), other 
> pagetitle should not have this "class"-param (<a 
> href="index.php?id=200">Short page title</a>)
> How can i differentiate between menu-items with separator and those 
> without separator and - if necessary - add a "class"-param to the link?
> 
> Thanks for your support
> Henry

ref to tsref:->split
1 is of type stdWrap
so you could try to set
1.typolink to your needs
or try to 1.addParams

Just an idea.

Regs. Peter.
-- 
_____________________________
4Many® Services
openBC: http://www.openbc.com/go/invuid/Peter_Russ



More information about the TYPO3-english mailing list