[TYPO3-dev] itemArrayProcFunc inconsistent behaviour when no sub-pages - bug?
wolfgang at stufenlos.net
Mon Sep 24 08:39:54 CEST 2007
On Sep 23, 2007, at 7:19 PM, Peter wrote:
> I'm guessing this is linked to the item state of the parent menu item.
If there's no second level, why run any code for it?
So.. no, it's no bug.
> If so, is it the responsibility of the function called by
> itemArrayProcFunc to control the state of that object, or should it
> handle itself properly when passed items through itemArrayProcFunc
> if it has no subpages?
> If it is the responsibility of the called function, how do I do it?
You'll have to move the itemArrayProcFunc to the first level
of your menu and create the submenu entries (which are no real pages)
there using the array key "_SUB_MENU"
More information about the TYPO3-dev