[TYPO3-dev] itemArrayProcFunc inconsistent behaviour when no sub-pages - bug?

Wolfgang Klinger wolfgang at stufenlos.net
Mon Sep 24 08:39:54 CEST 2007


*hiya!*

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.

Sure.
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  
> even
> 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"


hth,
bye Wolfgang



More information about the TYPO3-dev mailing list