[TYPO3] Setting different ids in menu enclosing divs
Tyler Kraft
headhunterxiii at yahoo.ca
Wed Dec 20 20:26:24 CET 2006
Set it on the menu item and not the menu - the NO not the tmenu itself
Eduardo Trápani wrote:
>> You need to set "subst_elementUid = 1"in your menuobject. Then you can
>> use the 'marker': "{elementUid}" to insert the ID of the page..
>
> I just did and the marker is never substituted. Here is my TS Setup.
> It's based on the "Modern Template Building". Can anybody see if there
> is something wrong? I get the text {elementUid} always, it's never
> translated.
>
> # Menu 1 cObject
>
> temp.menu_1 = HMENU
>
> # First level menu-object, textual
>
> temp.menu_1.1 = TMENU
>
> temp.menu_1.1 {
> expAll = 1
> subst_elementUid = 1
>
> # Normal state properties
> NO.allWrap = <h1>({elementUid})</h1><li class=sitetitle> | </li>
>
> # Enable active state and set properties:
>
>
> ACT = 1
> ACT.allWrap = <div class="menu1-level1-act"> | </div>
> }
>
> # Second level menu-object, textual
>
> temp.menu_1.2 = TMENU
>
> temp.menu_1.2 {
>
> subst_elementUid = 1
>
> # Normal state properties
> wrap = <div id="submenuAcceso_'{elementUid}'" class="divSubMenu"> | </div>
> NO.allWrap = <h1>{elementUid}</h1><li class="liSubMenu"> | </li>
>
> # Enable active state and set properties:
> ACT = 1
> ACT.allWrap = <li class="negrita"> | </div>
> }
>
>> See TSRef for more info.
>> http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/10/8/
>>
>
> Thanks! It was right before my eyes, even with an explanation on its
> usage, I had been there but hadn't seen it.
>
> Eduardo.
More information about the TYPO3-english
mailing list