[TYPO3-english] Repeat a Wrap every 4 times (maybe optionSplit)

Marcus 'biesior' Biesioroff vsbies at wp.pl
Thu Feb 4 17:14:40 CET 2010


W dniu 2010-02-04 15:55, Ansgar Brauner pisze:
> Hi all,
>
> here is another menu related problem which I could not solve in the last
> days by googleing....

Well if there's no other idea you can use something like this block 
example, unfortunately didn't find any way to set maxItems and begin 
values dynamically, so you have to change this every time, when in the 
second part there's more then 4 items  :/



lib.someMenu = COA
lib.someMenu {
   wrap = <ul>|</ul>
   10 = HMENU
   10 {
     1=TMENU
     1.NO.allWrap = |*|<li>wrapStart</li><li>|</li> || <li>|</li> || 
<li>|</li> || <li>|</li><li>wrapEnd</li>|*|
   }

   20 = HMENU
   20 {
     wrap = <li>wrapStart</li>|<li>wrapEnd</li>
     1 = TMENU
     1.NO.allWrap = <li>|</li>
   }
}

lib.someMenu.10.maxItems = 12
lib.someMenu.20.begin = 13



-- 
Marcus 'biesior' Biesioroff
a.k.a. Marek Krawczyk (original)

Polish TYPO3 Community Proud Member
http://typo3.pl


More information about the TYPO3-english mailing list