[TYPO3] Split menu with variable number of items in half
Peter Klein
peter at umloud.dk
Tue Jun 19 09:15:34 CEST 2007
Hi John.
Try this:
-- cut --
lib.splitmenu = COA
lib.splitmenu {
10 = HMENU
10.special = directory
10.special.value = 1
10.1 = TMENU
10.1 {
wrap = <div>1st half of menu items<br>|</div>
NO {
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
if.value.data = register:count_HMENU_MENUOBJ
if.negate = 1
if.isLessThan.prioriCalc=1
if.isLessThan.cObject=TEXT
if.isLessThan.cObject.insertData=1
if.isLessThan.cObject.value = ({register:count_menuItems}+1)/2
wrap = |<br>
}
}
ACT < .NO
ACT = 1
ACT.stdWrap.cObject.10.wrap = <strong>|</strong>
}
20 < .10
20.1.wrap = <div>2nd half of menu items<br>|</div>
20.1.NO.stdWrap.cObject.if.negate >
}
page.200 < lib.splitmenu
-- cut --
--
Peter Klein/Umloud Untd
"John Kavanagh" <john.kavanagh at roomthree.com> skrev i en meddelelse
news:mailman.335288.1182193578.21067.typo3-english at lists.netfielders.de...
Hello,
Does anybody know if it is possible to add an active state to the links
of the menu generated in this code?
[....]
More information about the TYPO3-english
mailing list