[TYPO3] menuFunc

Peter Klein peter at umloud.dk
Fri Jul 6 14:50:19 CEST 2007


Hi Bas. If you want to set the ACT state for one of the menu items, you can 
do it like this in your userFunc.
But you have to specify which menuitem ($k) it is you want active yourself.

 $menuArr[$k]["ITEM_STATE"]="ACT";

-- 
Peter Klein/Umloud Untd

"Bas van der Togt" <bas.vander.togt at efocus.nl> skrev i en meddelelse 
news:mailman.1.1183725187.8784.typo3-english at lists.netfielders.de...
>I got it working now!
> One more question. I want to define a active statemeny. Is this possible 
> with userfunction? Cause ACT.stdWrap.typolink.wrap = <li 
> class="act">|</li> is not working.
>
> cheers,
> Bas
>
> My TS now:
> obj.linkmenu = COA
> obj.linkmenu {
>   1 = TEXT
>   1.value = <h2>Categorieen</h2>
>
>   2 = HMENU
>   2 {
>     wrap = <ul id="links">|</ul>
>     special = userfunction
>     special {
>       userFunc = user_menuFunc->makeMenuArray
>       userFunc {
>         table = tx_ablinklist_category
>         select.pidInList = 449
>         select.orderBy = label
>       }
>     }
>     1 = TMENU
>     1.noBlur = 1
>     1 {
>       NO {
>         doNotLinkIt = 1
>         stdWrap.field = label
>         stdWrap.typolink.parameter = 452
>         stdWrap.typolink.wrap = <li>|</li>
>         stdWrap.typolink.additionalParams.field = uid
>         stdWrap.typolink.additionalParams.wrap= 
> &tx_ablinklist_pi1[action]=getviewcategory&tx_ablinklist_pi1[category_uid]=|
>         #stdWrap.data = debug:data
>       }
>
>       ACT = 1
>       ACT {
>         stdWrap.typolink.wrap = <li class="act">|</li>
>       }
>     }
>   }
> }
>
> Bas van der Togt wrote:
>> hello list,
>>
>> I'm trying to build a menu with menuFunc from the table 
>> "tx_ablinklist_category". The menu is rendered but it's not linked to the 
>> related page. What am i doing wrong?
>>
>> TS:
>> page.includeLibs.usermenu = fileadmin/includes/menuFunc.inc
>>
>> obj.header = HMENU
>> obj.header.special = userfunction
>> obj.header.special.userFunc = user_menuFunc->makeMenuArray
>> obj.header.special.userFunc.table = tx_ablinklist_category
>> obj.header.special.userFunc.select.pidInList = 449
>> obj.header.1 = TMENU
>> obj.header.1 {
>>   NO {
>>     doNotLinkIt = 0
>>     stdWrap.field = label
>>     stdWrap.typolink.parameter.data = field:pid
>>     #stdWrap.data = debug:data
>>     allWrap = <br>
>>   }
>> }
>>
>> Any help would be great!
>>
>> Kind regards,
>> Bas 




More information about the TYPO3-english mailing list