[TYPO3] index or counter in TMENU

Nathan Lounds loundsna at msu.edu
Thu Jun 8 03:18:55 CEST 2006


Thanks so much for your help!  Once again your answer was just what I needed
and worked great.  

-Nate

-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of JoH
Sent: Wednesday, June 07, 2006 6:32 PM
To: typo3-english at lists.netfielders.de
Subject: Re: [TYPO3] index or counter in TMENU

> Does anyone know how to get the index of the TMENU elements in a
> TMENU?  So if I have a TMENU with five items, is there a way to spit
> out the 5 (or 4 if it is zero indexed) in the HTML for the 5th
> element?
>
> I'm creating JavaScript in my menus and I need the elements to have
> unique Ids.  Right now I'm using the uid, but it would simplify
> things a lot if I had sequential ids that started at 0 or 1.

try something like this:

NO {
    allWrap.cObject = TEXT
    allWrap.cObject.value = |
    allWrap.dataWrap = <li class="item{register:count_HMENU_MENUOBJ}">|</li>
}

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de


_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english




More information about the TYPO3-english mailing list