[TYPO3-dev] itemArrayProcFunc only for one menuitem
Joerg Schoppet
joerg at schoppet.de
Thu Jun 18 23:09:09 CEST 2009
Hi,
I have the following menu-structure:
Index
- Products
- Company
- Info
For the menuitem "Products" I want to have a fold-out menu, which is dynamically created with "itemArrayProcFunc".
Actually I have the following TS:
includeLibs.tx_winetreatment_menuitem_procfuncs = EXT:wine_treatment/class.tx_winetreatment_menuitem_procfuncs.php
temp {
NAVIGATION = HMENU
NAVIGATION {
special = directory
special {
value = 2
}
1 = TMENU
1 {
noBlur = 1
expAll = 1
wrap = <ul>|</ul>
NO {
wrapItemAndSub = <li>|</li>
ATagTitle.field = description // subtitle // title
}
}
2 = TMENU
2 {
itemArrayProcFunc = tx_winetreatment_menuitem_procfuncs->createCategoryMenuItems
itemArrayProcFunc {
targetPid = 5
}
noBlur = 1
expAll = 1
wrap = <!--[if IE7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><ul>|</ul><!--[if lte IE6]></td></tr></table></a><![endif]-->
NO {
wrapItemAndSub = <li>|</li>
ATagTitle.field = description // subtitle // title
}
}
}
}
Problem with this is, that every menuitem:
- Products
- Company
- Info
gets the dynamical sub-menu :-(
But I only wants to have it for Products, even if "Company" is selected, "Products" should have this submenu.
How can I do that?
Joerg
More information about the TYPO3-dev
mailing list