Hallo,
bin recht neu bei Typo3, folgende Frage dürfte das beweisen:
Wie kann ich beim Generieren der Menüs Zeichen mit in den Link bringen?
Möchte gerne vor alle Links ein » machen. Es muss aber unbedingt in den Link mit rein. Bei mir wird es immer vor das <a>-Tag gesetzt.
Also, dass das nachher so aussieht:
<a href="http://www.XYZ.de/66.0.html">raquo; Link-Name</a>
Hab alles ausprobiert, allWrap, stdWrap, ATagBeforeWrap, before etc. (allerdings ohne diese wirklich zu verstehen ;-))
Vielen Dank für Eure Hilfe!
Was für ein Menü hast Du denn?
Bei einem GMENU erstellst Du einfach ein zusätzliches Textobjekt, bei einem TMENU setzt Du das einfach in den allWrap in Deinen NO.
Wenn Du mehr Infos willst, hätte ich auch gerne etwas mehr Futter - z.B. Dein derzeitiges TS für die entsprechende Menüebene.
Mein TS sieht so aus:
## Menu [Begin]
lib.mainMenu = HMENU
lib.mainMenu.1 = TMENU
lib.mainMenu.1 {
NO.allWrap = |
NO.ATagParams = class="main_link"
NO.stdWrap.html.SpecialChars = 1
ACT = 1
ACT.allWrap = |
ACT.stdWrap.SpecialChars = 1
ACT.ATagParams = class="main_link_act"
}
Ich hätte gerne, dass der active Link ein » mit in das <a>-Tag kriegt.
Ich habs so gelöst bei mir:
Um jeden Link wrappe ich ein DIV und der Link wiederum bekommt eine Klasse zugeteilt:
#########
# Ebene 2
#########
temp.contentleft = HMENU
temp.contentleft.entryLevel = 1
temp.contentleft.1 = TMENU
temp.contentleft.1.NO.ATagParams = class="nav"
temp.contentleft.1.NO.before = <div class="box33">
temp.contentleft.1.NO.after = </div>
temp.contentleft.1.ACT < temp.contentleft.1.NO
temp.contentleft.1.ACT = 1
temp.contentleft.1.ACT.ATagParams = class="nav2"
Das CSS zu nav im normal Zustand sieht dann so aus:
css Zustand NO:
a.nav:link {
padding-left: 18px;
text-decoration: none;
color:#663300;
font-weight: normal;
font-size: 11px;
background-image: url(images/pfeile.gif);
background-repeat: no-repeat;
display: block;
}
a.nav:visited {
padding-left: 18px;
text-decoration: none;
color:#663300;
font-weight: normal;
font-size: 11px;
background-image: url(images/pfeile.gif);
background-repeat: no-repeat;
display: block;
}
a.nav:hover {
padding-left: 18px;
text-decoration: none;
color:#990033;
font-weight: normal;
font-size: 11px;
background-image: url(images/pfeile2.gif);
background-repeat: no-repeat;
display: block;
}
a.nav:active {
padding-left: 18px;
text-decoration: none;
color:#990033;
font-weight: normal;
font-size: 11px;
background-image: url(images/pfeile.gif);
background-repeat: no-repeat;
display: block;
}
Und für nav2 für den activen ausgewählten Zustand
css Zustand ACT:
a.nav2:link {
padding-left: 18px;
text-decoration: none;
color: #990033;
font-weight: bold;
font-size: 11px;
background-image: url(images/pfeile2.gif);
background-repeat: no-repeat;
display: block;
}
a.nav2:visited {
padding-left: 18px;
text-decoration: none;
color: #990033;
font-weight: bold;
font-size: 11px;
background-image: url(images/pfeile2.gif);
background-repeat: no-repeat;
display: block;
}
a.nav2:hover {
padding-left: 18px;
text-decoration: none;
color: #990033;
font-weight: bold;
font-size: 11px;
background-image: url(images/pfeile2.gif);
background-repeat: no-repeat;
display: block;
}
a.nav2:active {
padding-left: 18px;
text-decoration: none;
color: #990033;
font-weight: bold;
font-size: 11px;
background-image: url(images/pfeile2.gif);
background-repeat: no-repeat;
display: block;
}
Wahrscheinlich gibt es noch eine menge andere Lösungen...
viele Grüße
sandra