Re: [TYPO3] TMENU maxItems

2007-03-26 Thread Bas van der Togt
Thanks! I get it. cheers, Bas Peter Klein schreef: > -- cut -- > function user_make_links($menuArr,$conf) { > while (list($k,$v) = each($menuArr)) { > if ($conf["parentObj"]->isItemState("CUR",$k)) break; > } > $p = floor($k/5)*5; > $ma = array(); > for ($i=0;$i<5;$i++) { > $ma[$i]=$men

Re: [TYPO3] TMENU maxItems

2007-03-26 Thread Peter Klein
-- cut -- isItemState("CUR",$k)) break; } $p = floor($k/5)*5; $ma = array(); for ($i=0;$i<5;$i++) { $ma[$i]=$menuArr[$p+$i]; } return $ma; } ?> -- cut -- -- Peter Klein/Umloud Untd "Bas van der Togt" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > hmm i don't get th

Re: [TYPO3] TMENU maxItems

2007-03-24 Thread Bas van der Togt
hmm i don't get this... can you give me an example? cheers, Bas Peter Klein schreef: > Hi Bas. > Write a small itemArrayProcFunc function that crops off the parts of the > menuaray you dont need. > > You can find some examples of itemArrayProcFunc functions in the mailinllist > archive: > http

Re: [TYPO3] TMENU maxItems

2007-03-24 Thread Peter Klein
Hi Bas. Write a small itemArrayProcFunc function that crops off the parts of the menuaray you dont need. You can find some examples of itemArrayProcFunc functions in the mailinllist archive: http://support.typo3.org:8080/jive/isearch.jspa?advanced=false&searchQuery=itemArrayProcFunc+&=Search&sea

[TYPO3] TMENU maxItems

2007-03-24 Thread Bas van der Togt
Hello list, I build a menu, see below. But now i want to show max 5 pages in the menu, two pages before the active item and two pages after. Exmaples: page4|page5|page6(active)|page7|page8 page1(active)|page2|page3|page4|page5 This is not possible with maxItems = 5. Cause than it's only showing