[TYPO3] Setting different ids in menu enclosing divs

Peter Klein peter at umloud.dk
Wed Dec 20 17:11:26 CET 2006


Hi Eduardo.
You need to set "subst_elementUid = 1"in your menuobject. Then you can use 
the 'marker': "{elementUid}" to insert the ID of the page..

See TSRef for more info.
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/10/8/

--
Peter Klein / Umloud Untd

"Eduardo Trápani" <eduardo at esperanto.org.uy> wrote in message 
news:mailman.31623.1166624719.21325.typo3-english at lists.netfielders.de...
> Hi,
>
> I want to collapse and expand second level menus by clicking on the top 
> level menu.  The HTML template does it alright but for it to work each 
> wrapping div has to have its own id.  On top of that I need to change the 
> link of the first level menus to include a javascript call with the id 
> reference.
>
> I've been searching for two days, but I cannot get it to work.  I'm a 
> newbie at typo3, maybe this is really simple to do, or it's already been 
> done in a library ...
>
> This is my current code:
>
> temp.menu_1.2 = TMENU
>
> temp.menu_1.2 {
>
>  # Normal state properties
>  wrap = <div id="submenuAcceso_{field:uid}" class="divSubMenu"> | </div>
>  NO.allWrap = <li class="liSubMenu"> | </li>
>
>  # Enable active state and set properties:
>  ACT = 1
>  ACT.allWrap = <li class="negrita"> | </div>
> }
>
> {field:uid} appears as-is in the HTML code.
>
> Thanks, Eduardo. 




More information about the TYPO3-english mailing list