[Typo3] menu
racco
raczek at open.infi.pl
Mon Jun 6 02:55:12 CEST 2005
Hello!
Haven't been here for about 2 days and over 200 msgs :) Typicall.
Ok now my question;
I have a template which defines menu like this:
<td class="menu">
<div class="menu">
<a class="menu" href=""><div class="menuitem"
onMouseOver="this.className='menuitemonMouseOver'"
onMouseOut="this.className='menuitem'">element</div></a>
<a class="menu" href=""><div class="menuitem"
onMouseOver="this.className='menuitemonMouseOver'"
onMouseOut="this.className='menuitem'">element</div></a>
<a class="menu" href=""><div class="menuitem"
onMouseOver="this.className='menuitemonMouseOver'"
onMouseOut="this.className='menuitem'">element</div></a>
<a class="submenu" href=""><div class="submenuitem"
onMouseOver="this.className='submenuitemonMouseOver'"
onMouseOut="this.className='submenuitem'">›element</div></a>
<a class="submenu" href=""><div class="submenuitem"
onMouseOver="this.className='submenuitemonMouseOver'"
onMouseOut="this.className='submenuitem'">›element</div></a>
<a class="submenu" href=""><div class="submenuitem"
onMouseOver="this.className='submenuitemonMouseOver'"
onMouseOut="this.className='submenuitem'">›element</div></a>
<a class="menu" href=""><div class="menuitem"
onMouseOver="this.className='menuitemonMouseOver'"
onMouseOut="this.className='menuitem'">element</div></a>
<a class="menu" href=""><div class="menuitem"
onMouseOver="this.className='menuitemonMouseOver'"
onMouseOut="this.className='menuitem'">element</div></a>
</div>
</td>
In my typo setup i have sth like this:
# Menu 1 cObject
temp.menu_1 = HMENU
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
wrap = <div class="menu"> | </div>
NO.allWrap = <div class="menuitem"
onMouseOver="this.className='menuitemonMouseOver'"
onMouseOut="this.className='menuitem'"> | </div>
}
# Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
NO.allWrap = <div class="submenuitem"
onMouseOver="this.className='submenuitemonMouseOver'"
onMouseOut="this.className='submenuitem'">› | </div>
}
As output I get:
<td class="menu"><div class="menu"><div class="menuitem"
onMouseOver="this.className='menuitemonMouseOver'"
onMouseOut="this.className='menuitem'"><a href="index.php?id=news"
onfocus="blurLink(this);">NEWS</a></div><div class="menuitem"
onMouseOver="this.className='menuitemonMouseOver'"
onMouseOut="this.className='menuitem'"><a href="index.php?id=391"
onfocus="blurLink(this);">STH</a></div>......
my question is:
1.) Is it possible to manipulate through TYPOscript with the name of the <a>
tag class, because I use it for menu and submenu as you see.
2) How move this first div (NO.allWrap ) inside <a> tag? I know it is
possible, because I have read about this once, but I can not find the info
about it now
thx
racco
More information about the TYPO3-english
mailing list