![]() |
| | LinkBack | Themen-Optionen | Thema bewerten | Ansicht |
|
#1
| |||
| |||
Hallo Leute, ich würder gerne ein Menu realisieren, das Trennzeichen | zwischen | den | einzelnen | Menüpunkten | verwendet. Leider kann ich dies nicht per css angeben , da sonst am Ende des Menüs auch ein Trenn zeichen eigefügt wird. Kann ich irgendwie per Typoscript was machen? Hier mein Menü als Typoscript: Code: subparts.nav = HMENU
subparts.nav.1 = TMENU
subparts.nav.1 {
expAll = 1
wrap = <ul>|</ul>
NO {
beforeWrap = <li >| || <li >| || <li >| ||<li >| || <li >| || <li >|
linkWrap = |
doNotShowLink = 1
before.cObject = TEXT
before.cObject.field = uid
#before.cObject.dataWrap = <a href="index.php?id=|" accesskey="{field:tx_govaccessibility_accesskey}" title="{field:title}{field:subtitle}">
before.cObject.dataWrap = <a href="{field:title}.|.0.html" accesskey="{field:tx_govaccessibility_accesskey}" title="{field:title}{field:subtitle}{field:tx_govaccessibility_accesskey}">
after.cObject = TEXT
after.cObject.field = title//nav_title
after.cObject.htmlSpecialChars = 1
after.cObject.wrap = | </a>
wrapItemAndSub = |</li> || |</li> || |</li>|||</li> || |</li> || |</li>
}
ACT > .NO
ACT = 1
ACT {
beforeWrap = <li id="act">| || <li id="act">| || <li id="act">| ||<li id="act">| || <li id="act">| || <li id="act">|
wrapItemAndSub = |</li> || |</li> || |</li>|| |</li> || |</li> || |</li>
}
} ![]() Tom |
|
#2
| ||||
| ||||
| Optionsplit ist das was du suchst... http://typo3.org/documentation/docum...ash=6604390b37 und http://typo3.org/documentation/docum...ash=745a52c8c9 bei mir sieht das dann so aus: setup: Code: ######### # Ebene 1 ######### temp.nav_main = HMENU temp.nav_main.1 = TMENU temp.nav_main.1.NO.ATagParams = class="navmain" temp.nav_main.1.NO.before = temp.nav_main.1.NO.after = <font color="#663300">|</font>|*| <font color="#663300">|</font>|*| Zu sehen ist das dann hier: http://www.acoreus.de hoffe ich konnte Dir etwas helfen liebe grüße sandra |
|
#3
| |||
| |||
Hi Sandra, vielen Dank für Deine schnelle Antwort. Irgendwie raff ich es aber nicht so ganz (Newbie). wenn ich nach folgendem Schema vorgehe dann funktioniert es einwandfrei, aller dings brauche ich klassen zur unterscheidung von aktiven und inaktiven menüpunkten. http://82.165.8.199/typo3cms/exotec-...dex.php?id=182 Wie kann ich das in mein bereits bestehendes Typoscript einbauen ?? )Liebe Grüße und nochmals vielen Dank ![]() Tom [/url] |
|
#4
| ||||
| ||||
| Meinst Du die css Klassen? |
|
#5
| |||
| |||
| Ja, aber die css-geschichte ist hinfällig, da ich ja mittels css nicht unterscheiden kann welcher Menüpunkt gerade aufgerufen ist ![]() :sad: Gruß Tom |
|
#6
| ||||
| ||||
| hm.... aber mit dieser Variante kann man doch wunderbar den Menu Ebenen und den Beiden Zuständen: NO und ACT ein jeweiligen Style zuweisen und den wiederum kann man doch wunderbar mit css definieren: Hier noch einmal der etwas ausführliche Code mit der 1 Ebene und den Zuständen : NO=Normal und Act=aktiver Link setup: Code: ######### # Ebene 1 ######### temp.nav_main = HMENU temp.nav_main.1 = TMENU temp.nav_main.1.NO.ATagParams = class="navmain" temp.nav_main.1.NO.before = temp.nav_main.1.NO.after = <font color="#663300">|</font>|*| <font color="#663300">|</font>|*| temp.nav_main.1.ACT < temp.nav_main.1.NO temp.nav_main.1.ACT = 1 temp.nav_main.1.ACT.ATagParams = class="navmain2" das CSS zur 1 Ebene sieht so aus: Code: /*****************************/
/* Menu 1 Ebene Zustand normal*/
/*****************************/
a.navmain:link {
text-decoration: none;
color:#663300;
font-weight: normal;
font-size: 11px;
}
a.navmain:visited {
text-decoration: none;
color:#663300;
font-weight: normal;
font-size: 11px;
}
a.navmain:hover {
text-decoration: none;
color:#663300;
font-weight: normal;
font-size: 11px;
}
a.navmain:active {
text-decoration: none;
color:#663300;
font-weight: normal;
font-size: 11px;
}
/*****************************/
/* Menu 1 Ebene Zustand aktivl*/
/*****************************/
a.navmain2:link {
text-decoration: none;
color:#663300;
font-weight: bold;
font-size: 11px;
}
a.navmain2:visited {
text-decoration: none;
color:#663300;
font-weight: bold;
font-size: 11px;
}
a.navmain2:hover {
text-decoration: none;
color:#663300;
font-weight: bold;
font-size: 11px;
}
a.navmain2:active {
text-decoration: none;
color:#663300;
font-weight: bold;
font-size: 11px;
} und der 2 Ebene mit den Zuständen: NO=Normal und Act=aktiv Code: ######### # 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" Code: /*****************************/
/* Menu 2 Ebene Zustand normal /*/
/*****************************/
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;
}
/*****************************/
/* Menu 2 Ebene Zustand aktivl*/
/*****************************/
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;
} dem Hauttemplate noch zugewiesen: Code: temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template = FILE
template.file = fileadmin/templates/html/index1.html
workOnSubpart = DOCUMENT_BODY
subparts.CONTENT < styles.content.get
subparts.NAVMAIN < temp.nav_main
subparts.CONTENTLEFT < temp.contentleft
} lg sandra |
|
#7
| ||||
| ||||
| @m8trix ne frage zu optionsplit. z.b. Code: <li>|</li> |*| <li>|</li> |*| <li>|</li> <li></li> vielleicht hast du ja ne idee?= |
|
#8
| ||||
| ||||
| Ich hab keine Ahnung warum das passiert... :sad: |
|
#9
| |||
| |||
Moinmoin, als o ich hab jetzt die ultimative Lösung: Code:
subparts.nav = HMENU
subparts.nav.1 = TMENU
subparts.nav = HMENU
subparts.nav.1 = TMENU
subparts.nav.1.wrap = <ul>|</ul>
subparts.nav.1 {
NO =1
NO.linkWrap = |||*| |||*| |
NO{
beforeWrap = <li >| || <li>| || <li>| ||<li >| || <li>| || <li>|
wrapItemAndSub = |</li> || |</li> || |</li>|| |</li> || |</li> || |</li>
}
ACT > .NO
ACT = 1
ACT {
linkWrap = |||*| |||*| |
beforeWrap = <li id="act">| || <li id="act">| || <li id="act">| ||<li id="act">| || <li id="act">| || <li id="act">|
wrapItemAndSub = |</li> || |</li> || |</li>|| |</li> || |</li> || |</li>
}
} ![]() Vielen Dank für Deinen Script und einen angenehmen Dienstag ![]() Gruß Tom |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Trennzeichen "|" zwischen Menüeinträgen | suendesizer | GMENU, HMENU, TMENU und Co. | 12 | Gestern 03:42 |
| Trennzeichen zwischen Contentelementen | j393029 | TYPO3 4.x Fragen und Probleme | 2 | 18.02.08 15:08 |
| Gelöst Browserfix zwischen </head> und <body> Tag einfügen | typo3dude | TYPO3 4.x Fragen und Probleme | 5 | 22.12.07 23:46 |
| Auf einzelne Menüpunkte Zugreifen | MuT | GMENU, HMENU, TMENU und Co. | 8 | 17.07.06 11:17 |
| Einzelne Menüpunkte differenzieren? | Ron | GMENU, HMENU, TMENU und Co. | 2 | 03.05.06 11:06 |