[TYPO3] Unique ids for menu items based on menu postion

Krystian Szymukowicz t33kRE.MO.VE. at RE.MO.VE.prolabium.com
Sun Dec 23 16:14:35 CET 2007


Ron Hall wrote:
> I am trying to find out if the is a way to generate unique css id"s for 
> menu items based on menu position.
> 
> I know it is possible to do this using the unique id of the page. For 
> instance for a menu of pages with uid's pf 132 445, and 12, I know I can 
> generate HTML like this:
> 
> <li id="menu-item-132">Menu Item 1 ...
> <li id="menu-item-445">Menu Item 2 ...
> <li id="menu-item-12">Menu Item 3 ...
> 
> By using typoscipt like:
> 
> menu.1.NO.wrap = <li id="topMenuItem{elementUid}"> | </li>li>
> 
> However is there code for generating HTML like this?
> 
> <li id="menu-item-1">Menu Item 1 ...
> <li id="menu-item-2">Menu Item 2 ...
> <li id="menu-item-3">Menu Item 3 ...
> 

hi

Look for "count_menuItems", "count_HMENU_MENUOBJ" in google.
You should get some examples.

--
grtz
Krystian


More information about the TYPO3-english mailing list