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

Nils Hodyas post at dietantejensen.de
Tue Sep 8 15:05:03 CEST 2015


Hallo Amir,

deine Vermutung stimmt.

Du nutzt eine ziemlich alte Version, Inhalte in das Template zu kriegen.

Was du brauchst, ist eine Markierung für das Menü (diese Dinger wie 
###TITLE###) im HTML, die du dann im TS GLAUB ICH mit marks.MENU = 
verknüpfst.

Hab das aber auch noch nie benutzt, so alt ist es. Sollte aber 
funktionieren.

LG, Nils

Am 08.09.2015 um 14:46 schrieb Amir Boudani:
> 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]
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

-- 
Nils Hodyas - Webdesign von die Tante Jensen · Großherzog-Friedrich-Straße 117 · 66121 Saarbrücken · (0681) 925 63 43 · 0160 318 183 7 · http://dietantejensen.de · DE 2757 96974 · Registergericht Saarbrücken



More information about the TYPO3-german mailing list