Hallo,
ich versuche eine Seite nachzubasteln, die ohne Typo3 erstellt wurde und funktioniert.
Hier die angepasste Designvorlage (auszugsweise):
<body>
<!-- ###container### begin--->
<div id="container">
<div id="topNav">###topNav###</div>
###header###
###mainNav###
<div id="subNav">###subNav###</div>
<!-- ###badmintonContent### begin--->
<div id="badmintonContent">
<!-- ###textArea### begin--->
<div id="textArea">
<!-- ###contentText### begin--->
<div id="contentText">
</div>
<!-- ###contentText### end--->
</div>
<!-- ###textArea### end--->
</div>
<!-- ###badmintonContent### end--->
</div>
<!-- ###container### end--->
</body>
Wie man sieht, kommen nacheinander die marker „topNav“, „header“, „mainNav“ und „subNav“.
Die „topNav“ ist ein TMENU, funktioniert und wird auch über das Stylesheet richtig dargestellt.
Der header wird über mein TS generiert, ebenso das GMENU „mainNav“, das auch funktioniert.
Die „subNav“ ist ein TMENU, das zwar funktioniert, aber nicht über das Stylesheet richtig dargestellt werden kann.
Hier mein Stylesheet (auszugsweise):
#topNav {color: #6cf; background: #405c9e; padding: 5px 0 5px 20px; font-size: 10px; font-weight: bold; text-align: left;}
#topNav a {text-decoration: none; color: #6cf; font-weight: bold;}
#topNav a:hover, #topNav a:focus, #topNav a:active {color: #fff;}
#topNav form {display: inline; font-weight: normal;}
/* subNav */
#subNav {color: #6cf; background: #405c9e; padding: 5px 0 5px 20px; font-size: 10px; font-weight: bold; text-align: left;}
#subNav a {text-decoration: none; color: #6cf; font-weight: bold;}
#subNav a:hover, #topNav a:focus, #topNav a:active {color: #fff;}
#subNav form {display: inline; font-weight: normal;}
/*
#subNav {clear: left; background: #57c2ef; font-size: 11px; height: 15px; border-top: 1px solid #fff;}
#subNav ul {list-style: none;}
#subNav li {display: inline; margin: 0 8px; color: #369;}
#subNav a {text-decoration: none; color: #369; font-weight: bold;}
#subNav a:hover, #subNav a:focus, #subNav a:active {color: #fff;}
.aktiv {color: #fff!important;}
*/
Die unteren, auskommentierten Anweisungen für die subNav sind die ursprünglichen, die oberen sind ein Versuch, der Sache auf die Spur zu kommen:
Ich habe erst einmal in der Designvorlage die subNav mit der id = „topNav“ definiert. Die Darstellung war richtig, also wie die der topNav.
Dann habe ich diesen letzten Schritt wieder rückgängig gemacht, aber die Stylesheet-Anweisungen für die topNav kopiert und für die subNav ausprobiert (der obere Block im Stylesheet!).
Das hat nicht gefuxt, d. h. die Darstellung war wie die zum Ausgang, mit irgendwelchen Formatierungen, was weiß ich, wo die her kommen.
Ach ja, hier mein TS (auszugsweise):
marks {
header = IMAGE
header.file = fileadmin/template/pix/header.gif
topNav = HMENU
topNav {
special = directory
special.value = 1
1 = TMENU
1.NO.linkWrap = Guten Tag || |*| | |*| | suche
#statt des headers wird der subheader im Menü angezeigt
1.NO.stdWrap.data = field : subtitle
}
mainNav = HMENU
mainNav {
special = directory
special.value = 2
1 = GMENU
1 {
NO.altImgResource.import = uploads/media/
NO.altImgResource.import.field = media
NO.altImgResource.import.listNum = 0
}
1 {
ACT < .NO
ACT = 1
ACT.altImgResource.import.listNum = 1
}
1 {
RO < .NO
RO = 1
RO.altImgResource.import.listNum = 1
}
}
subNav = HMENU
subNav {
special = directory
special.value = 11
1 = TMENU
1.NO.linkWrap = | | |*|| | |*||
1.NO.stdWrap.data = field : subtitle
}
}
Typo3: 3.8.1, Extension: Styled Content
Hat jemand eine Ahnung, wieso das erste TMENU richtig dargestellt wird, das zweite aber nicht?
Gruss,
Kutte