[TYPO3] How to create menu with page titles as id?

Redvald Hjulstad redvald at mac.com
Sat Oct 13 22:16:35 CEST 2007


Bartosz Aninowski skrev:
>> But this will give me the uid number of the menu item and not the title,
>> or???
> title and uid
> fg MenuItem1 MenuItem2 etc
> 
> page.10.1.NO {
> 
>   allWrap = <tr><td valign=top id="1tmenu{elementUid}" 
> style="background:#eeeeee;">|{elementUid}</td></tr>
> 
>   subst_elementUid = 1
> 
> }
> 
> 
Hmmm, just not getting it. Tried this:

     NO {
       wrapItemAndSub = <li id="{elemenUid}">|</li>
     	subst_elementUid = 1
     }

and got

<li id="{elemenUid}"><a href="index.php?id=8"  >Tjenester</a></li>




redvald


Here is the entire menu without {elementUid}

temp.nav = HMENU
temp.nav {
   wrap = <div class="menu">|</div>
   1 = TMENU
   1 {
     wrap = <ul>|</ul>
     noBlur = 1
     expAll = 1
     NO {
       wrapItemAndSub = <li>|</li>
     }
     ACT = 1
     ACT {
       wrapItemAndSub = <li>|</li>
       ATagParams = class="active"
     }
   }
}


More information about the TYPO3-english mailing list