Zum Inhalt springen

Linkes Menü wird je nach Inhalt des mittleren CONTENT zentriert + CONTENT Problem

Erstellt am 11. Juli 2006 · 1 Antwort · letzte Antwort am 11. Juli 2006

Tags: Frage

eddy_p ·

Hallo,

um mein Problem am besten zu beschreiben, hier der Link: www.mproxy.net

und der dazugehörige Template-Sourcecode:

seite = PAGE
seite {
typeNum = 0
bodyTag = <body bgColor = "#DDDDDD">
stylesheet = fileadmin/style.css
meta.AUTHOR = ottemeier datentechnik gmbh
meta.DESCRIPTION = LIONS Club Lage

10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/vorlage.html
10.workOnSubpart = DOKUMENT
10.marks {
TRAILER = IMAGE
TRAILER.file = GIFBUILDER
TRAILER.file {
XY = 559, 86
backColor = #82BC8B
10 = TEXT
10.text.field = subtitle // title
10.fontSize = 60
10.fontFile = fileadmin/fonts/arialbd.ttf
10.fontColor = #96CC9F
10.niceText = 1
10.offset = 10, 75

20 = TEXT
20.text.field = subtitle // title
20.fontSize = 36
20.fontFile = fileadmin/fonts/arialbd.ttf
20.fontColor = #E2F5E5
20.niceText = 1
20.offset = 40, 68
}

MENU_OBEN = HMENU
MENU_OBEN.special = directory
MENU_OBEN.special.value = 4
MENU_OBEN.1 = TMENU
MENU_OBEN.1.NO = 1
MENU_OBEN.1.ATagParams = class="linkWeiss"
MENU_OBEN.1.NO.linkWrap = | | |*| | | |*| |

MENU_LINKS = HMENU
MENU_LINKS.special = directory
MENU_LINKS.special.value = 6

MENU_LINKS.1 = GMENU
MENU_LINKS.1.NO = 1
MENU_LINKS.1.NO {
XY = 146, 30
backColor = #FF7A05

10 = TEXT
10.text.field = title
10.fontColor = #FFFFFF
10.fontFile = fileadmin/fonts/arial.ttf
10.fontSize = 12
10.niceText = 0
10.offset = 7, 21
}
20 = IMAGE
20.file = GIFBUILDER
20.file {
XY = 146,1
backColor = #FFFFFF
}
MENU_LINKS.1.RO < .MENU_LINKS.1.NO
MENU_LINKS.1.RO {
tmp < .backColor
backColor = #FCAC63
5 < .10
5.fontColor < .tmp
5.offset = 9,23
}

CONTENT = CONTENT
CONTENT.special = directory
CONTENT.special.value = 5
CONTENT.1 = TMENU
CONTENT.1.NO = 1
CONTENT {
table = tt_content
select.orderBy = sorting
select.where = colPos = 0
}

lib.stdheader >
lib.stdheader = CASE
lib.stdheader {
key.field = header_layout
1 = TEXT
1.field = header
1.wrap = <font face="Arial" size="2"><b> | </b></font><br>
default < .1
}
20.offset = 0, 29
}

------------------------------------------

Mein Problem:
wie ihr schon gesehen habt, wird die WILLKOMMENS-Seite -> Startseite nich sofort aufgerufen.

Zudem wird das Menü auf der linken Seite immer zentriert auf die Höhe zum mittleren Inhalt gestreckt.

Hat jemand eine Idee, wo ich dieses einstellen kann?

Vorab, ich habe noch nie mit Typo gearbeitet und diese ist mein erstes Projekt.

mfG
Eddy

igorshmigor ·

Problem 1: die oberste Seite wandelst Du in den Typ Shortcut um, mit Verweis auf die Startseite.
Problem 2: das ist kein Typo3-Problem, sondern ein HTML-Problem und liegt an der Art und Weise wie Du Dein Template aufgebaut hast. Als Lösung würde es vielleicht helfen, wenn Du Deinen Marker in ein oranges DIV mit fester Höhe einbettest und die Hintergrundfarbe für die Tabellenzelle rausnimmst.

Zum Beispiel so:

<td width="149"><div style="height:200px;background-color:#FF7A05">###MENUELINKS###</div></td>