[TYPO3] Split menu with variable number of items in half

Jan Slusarczyk janslu at grupaiis.pl
Tue Mar 28 00:44:21 CEST 2006


> Hi Jan. Try this:
> cut...

Thank you Peter!
It's almost perfect! There's a rounding problem
with 4 pages - there was 1 | 2 3 4 split,
with 5 pages - 1 2 | 3 4 5

I've changed the condition to:
if.isGreaterThan.cObject.value = {register:count_menuItems}/2 + 2

and I have:
with 4 pages: 1 2 3 | 4
with 5 pages 1 2 3 | 4 5

But this is so minor, that I can happily live with it.

Thank you so much
Jan



More information about the TYPO3-english mailing list