SChönen guten tag TYPO3 Family,
ich muss eine neue Seite in TYPO3 umsetzen, nur hat diese nun ein neuen Menuaufbau.
http://www.stm-ackerstrasse.de/endversion_2006-11-21.html
Seht ihr wie es aussieht wenn ein Hauptpunkt aktiv ist und wie es aussehen soll wenn das submenu offen is + der aktive unterpunkt dort.
Mein Problem ist, der Kollege hat das Template und CSS so gemacht, das die class Definitonen für den <a>-Tag gelten.
Wie kann ich es bewerkstelligen das typo3 dem jeweiligen Link die bestimmte Class zuweisen tut? Hoffentlich geht das :D
also ich wollte schon ,wie das beim Template building ist mit <div>-Container versuchen.Klappte nur nicht so ganz.Dann wollte ich den <li>-Tag einfach die classen mitgeben.Er hat dann die Punkte ,statt in einer Reihe auszugeben, mit abständen versehen.War glaube der Abstand vom aktiven submenupunkt.
Ich geb euch mal den html code und ts code.
[TS]tmp.LEFTMENU = HMENU
tmp.LEFTMENU {
wrap = <div id="leftMenu"> | </div>
special = directory
special.value = 3
1 = TMENU
1 {
wrap = <ul> | </ul>
NO = 1
NO.wrapItemAndSub = <li> | </li>
ACT = 1
ACT < .NO
ACT.ATagParams = id=current
}
}
[/TS]
[HTML]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD><!-- ###DOCUMENT_HEADER### begin -->
<TITLE>Stadtteilmanagement Ackerstraße Nord</TITLE>
<META http-equiv="content-type" content="text/html; charset=iso-8859-1">
<META http-equiv="content-language" content="de">
<META name="robots" content="index,follow">
<META name="description" content="Stadtteilmanagement Ackerstraße Nord">
<LINK rel="stylesheet" type="text/css" media="screen" href="/uploads/tf/screen.css">
<!--###DOCUMENT_HEADER### end --></HEAD>
<BODY>
<!--###DOCUMENT_BODY### begin -->
<DIV id="paper">
<DIV id="header">
<!-- ###TOP_NAVI### begin -->
<DIV id="headMenu">
<ul>
<li><A href="#">Home</A></li>
<li><IMG class="separator" src="images/separator.gif" alt=""><li>
<li><A href="#">Kontakt</A></li>
<li><IMG class="separator" src="images/separator.gif" alt=""><li>
<li><A href="#">Impressum</A></li>
<li><IMG class="separator" src="images/separator.gif" alt=""><li>
<li><A href="#">Suche</A></li>
</ul>
</DIV>
<!-- ###TOP_NAVI### end -->
</DIV>
<DIV id="printHead">
<B>Stadtteilmanagement Ackerstraße Nord</B> - Stadtteilleben - Bildung
</DIV>
<DIV id="main">
<!-- ###HAUPT_NAVI### begin -->
<DIV id="mainLeft">
<DIV id="leftMenu">
<ul>
<li><A class="off1" href="#">Veranstaltungskalender</A></li>
<li><A class="off1" href="#">Stadtteilmanagement</A></li>
<li><A class="off1" href="#">Projekte</A></li>
<li><A class="on1" href="#">Stadtteilleben</A></li>
<li><A class="off2" href="#">Gebietsinformationen</A></li>
<li><A class="on2" href="#">Bildung</A></li>
<li><A class="off2" href="#">Beschäftigung</A></li>
<li><A class="off2" href="#">Gewerbe</A></li>
<li><A class="off2" href="#">Freizeit</A></li>
<li><A class="off2" href="#">Kultur</A></li>
<li><A class="off1" href="#">Archiv</A></li>
<li><A class="off1" href="#">Links</A></li>
</ul>
<DIV class="menuSpace"> </DIV>
</DIV>
</DIV>
<!-- ###HAUPT_NAVI### end -->
<DIV id="mainMiddle">
</DIV>
<DIV id="mainRight">
<DIV id="content">
###CONTENT###
</DIV>
</DIV>
</DIV>
<!-- ###FOOTER### begin -->
<DIV class="utilityRow">
<DIV class="utilityRowLeft"><A href="#" onClick="history.back(); return false;">zurück</A></DIV>
<DIV class="utilityRowRight"><A class="nachoben" href="#">nach oben</A></DIV>
</DIV>
<!-- ###FOOTER### end -->
</DIV>
<br>
<!--###DOCUMENT_BODY### end -->
</BODY>
</HTML>
[/HTML]
Und hier die Classen die für das Menu gedacht sind.
[HTML]/*******************/
/* MainMenü */
/*******************/
A.off1, A.off1:visited {
float: left;
display: block;
width: 150px;
line-height: 14px;
padding: 0px 0px 1px 12px;
font-size: 10px;
margin-top: 7px;
margin-bottom: 2px;
font-weight: bold;
color: #FFFFFF;
text-decoration: none;
}
A.off1:hover, A.off1:active {
color: #DA0006;
background: #ffffff url(/uploads/tf/active1.gif) no-repeat;
text-decoration: none;
}
A.on1, A.on1:visited {
float: left;
display: block;
width: 150px;
line-height: 14px;
padding: 0px 0px 1px 12px;
font-size: 10px;
margin-top: 7px;
margin-bottom: 2px;
font-weight: bold;
color: #DA0006;
background: #ffffff url(/uploads/tf/active1.gif) no-repeat;
text-decoration: none;
}
A.on1:hover, A.on1:active {
color: #DA0006;
background: #ffffff url(/uploads/tf/active1.gif) no-repeat;
text-decoration: none;
}
/*******************/
/* SubMenü */
/*******************/
A.off2, A.off2:visited {
float: left;
display: block;
width: 134px;
font-weight: normal;
font-size: 9px;
line-height: 10px;
padding: 2px 0px 3px 28px;
margin-top: 1px;
margin-bottom: 2px;
color: #FFFFFF;
text-decoration: none;
}
A.off2:hover, A.off2:active {
color: #DA0006;
background: #ffffff url(/uploads/tf/active2.gif) no-repeat;
text-decoration: none;
}
A.on2, A.on2:visited {
float: left;
display: block;
width: 134px;
font-weight: normal;
font-size: 9px;
line-height: 10px;
padding: 2px 0px 3px 28px;
margin-top: 1px;
margin-bottom: 2px;
color: #DA0006;
background: #ffffff url(/uploads/tf/active2.gif) no-repeat;
text-decoration: none;
}
A.on2:hover, A.on2:active {
color: #DA0006;
background: #ffffff url(/uploads/tf/active2.gif) no-repeat;
text-decoration: none;
}[/HTML]

