[TYPO3] Getting parent id in menu

Patxi Goitia pgoitia at euskalnet.net
Tue May 22 19:09:41 CEST 2007


Hi, I have a page structure like this:

Root (id=1)
   |
   |___Recipes (id=2)
   |     |______ New (id=4)
   |     |______ Old (id=5)
   |
   |
   |___Food (id=3)
         |______ Veggies (id=6)
         |______ Meat (id=7)


I want to add a query string to all links under level 1 (aka Part A, or 
Part B), with the id of level 1.

I want the 'Meat' link under 'Food' to have id=7&Section=3

I manage to add the query string to the link, but I'm unable to get the 
correct Id...

This is my TS for level 2 menu

#--------------------------------------
temp.menu_1.2 = TMENU
temp.menu_1.2 {
    expAll=1
    noBlur=1
    wrap=<ul> | </ul>

    NO.wrapItemAndSub  = <li> | </li>
    NO.doNotShowLink = 1
    NO.before.cObject = TEXT
    NO.before.cObject {
       field = nav_title
       typolink.parameter.field = uid
       typolink.additionalParams.data = leveltitle:-2
       typolink.additionalParams.wrap = &section=|
    }
}

#--------------------------------------


I user leveltitle:-2 as a test, but I have always section=Recipes, even 
in links under 'Food'...

What am I doing wrong ?

Thank you


More information about the TYPO3-english mailing list