[TYPO3] splitting TMENUITEMS

Christopher Torgalson bedlamhotel at gmail.com
Fri Jun 1 18:37:54 CEST 2007


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.
>
> You could try this
>
> NO.after = | |*| | |*|



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: "&#124;". 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> | &nbsp;&#124; </li> |*| <li> | &nbsp;&#124; </li>
|*| <li> | </li>
  }
}





-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list