[TYPO3-german] Kriege das HMenu nicht in den div Container

Amir Boudani Amir.boudani at gmail.com
Tue Sep 8 14:46:27 CEST 2015


Typo3 Version 7.3.1

Hallo liebe Community, 

Ich hab vor einem Monat angefangen mit Typo3. Im Moment komme ich mit einem Problem nicht weiter.
Ich habe ein HMenu das nicht im div Container "Menu"  erscheinen will. Es erscheint immer ganz oben. Liegt vermutlich daran das ich ihm nicht im TEMPLATE "Hauptausehen" zugewiesen habe sondern im "Page.20" 
Das Menü sollte wenn es sich an der Position des div Container befindet durch das CSS weiter definiert werde.
Meine Frage: Wie kriege ich das Menu in mein Template rein bzw. wo ist der Fehler?

Vielen Dank im Voraus.


AmirB


Contend:

[TS]Haupttemplate = TEMPLATE
Haupttemplate {
template = FILE
template.file = fileadmin/Template/hauptausehen.html
marks.TITLE < styles.content.getLeft
marks.INHALT < styles.content.get
marks.BILDR < styles.content.getRight
}

page.includeCSS {
file = fileadmin/Template/Stylesheet/visual.css
}

### Menü ###
obj.menu = COA
obj.menu {
wrap = <ul>|</ul>
10 = HMENU
10 {
special = list
special.value = 1
1 = TMENU
1 {
NO.wrapItemAndSub = <li>|</li>
CUR = 1
CUR.wrapItemAndSub = <li class"current">|</li>
}
}

20 = HMENU
20.1 <.10.1
20.1.expAll = 1
20 {
2 = TMENU
2 {
expAll = 1
wrap = <ul class"level2">|</ul>
NO.wrapItemAndSub = <li>|</li>
ACT < .NO
ACT = 1
}

3 = TMENU
3 {
wrap = <ul class"level3">|</ul>
NO.wrapItemAndSub = <li>|</li>
ACT < .NO
ACT = 1
}
}
}

page = PAGE
page.5 < obj.menu
page.10 < Haupttemplate
[/TS]

[CSS(only part of it)]
#obj.menu {
float: left;
font-size: 14px;
font-family: Arial, sans-serif;
[/CSS(only part of it)]

[html]<html>
<head>
<link href="stylesheet/visual.css rel="stylesheet" type="text/css" />
</head>
<body>
<div id="rahmen">
<div id="header">
<div class="title">

</div>
</div>
<div id="menu">
<div id="obj.menu">
</div>
</div>
<div id="contentFrame">
<div id="spacer2">
</div>
<div class="bildr">
###BILDR###
</div>
<div id="inhalt">
###INHALT###
</div>
<div id="spacer">
</div>
</div>
<div id="footer">
<a href="****************" style="color:white; background-color:transparent; text-decoration:none">©</a>
</div>
</div>
</body>
<style>
a:link {color:green; background-color:transparent; text-decoration:none}
a:visited {color:green; background-color:transparent; text-decoration:none}
a:hover {colorrange; background-color:transparent; text-decoration:underline}
a:active {color:green; background-color:transparent; text-decoration:underline}
</style>
</html>
[/html]


More information about the TYPO3-german mailing list