[TYPO3-english] userFunc menu
Marieke de Bruin
marieke at purplesky.nl
Thu Feb 9 16:51:07 CET 2012
Hi all,
I have a menu with a userFunc. It starts like down here.
I have a problem with the menu.left.special.userFunc.select.where =
maingroup_id = {GPvar:tx_advertisement_dispatcher|maingroupid}
this isn't working.
But the same GPvar in the stdWrap is showing the right results 1,2 or 3.
When I use menu.left.special.userFunc.select.where = maingroup_id = 2 in
stead of menu.left.special.userFunc.select.where = maingroup_id =
{GPvar:tx_advertisement_dispatcher|maingroupid}
it is working. So in the wrap it is working but in the userFunc it isn't.
Does anyone sees where the problem is?
page.includeLibs.usermenu =
fileadmin/sites/dummy/Templates/PHP/specialmenu.inc
menu.left = HMENU
menu.left.special = userfunction
menu.left.special.userFunc.insertData = 1
menu.left.special.userFunc = user_menuFunc->makeMenuArray
menu.left.special.userFunc.table = tx_advertisement_subgroup
menu.left.special.userFunc.select.andWhere = deleted = 0
#menu.left.special.userFunc.select.where = maingroup_id = 2
menu.left.special.userFunc.select.where = maingroup_id =
{GPvar:tx_advertisement_dispatcher|maingroupid}
menu.left.special.userFunc.select.pidInList = 20
menu.left.1 = TMENU
menu.left.1 {
expAll = 1
stdWrap.wrap.insertData = 1
stdWrap.wrap = <div
class="content_title"><h3>{GPvar:tx_advertisement_dispatcher|maingroupid}Subcategorie</h3></div><ul
class="first">|</ul>
noBlur = 0
Thanks in advance!
Marieke
More information about the TYPO3-english
mailing list