[Typo3] optionSplit and menu

Alex Lopez alex.lopezt at gmail.com
Mon Jun 27 16:50:47 CEST 2005


2005/6/27, Kraft Bernhard <kraftb at gmx.net>:
> Alex Lopez wrote:
> > temp.menu_1.2 = TMENU
> > temp.menu_1.2 {
> >   NO.allWrap = <div class="section" id="section">| |*| | |*| |</div>
> >   NO.ATagParams = class="item2"
> >
> > }
> 
> "wrap"'s get used for such stuff. OptionSplit is for different things:
> 
> temp.menu_1.2 = TMENU
> tmep.menu_1.2 {
>    wrap = <div class="section" id="section"> | </div>
>    NO.allWrap = |
>    NO.ATagParams = class="item2"
> }
> 
> TSRef page 116:
> "wrap: Wraps only if there were items in the menu"
> 

Yes, but then, each menu will be in a div, and I want all menus in
only a div...

I need to evaluate the number of menu items and, if there is only one
(or less than one) I would use your solution...

Thanks,

Àlex



More information about the TYPO3-english mailing list