Hi Leutz,
hab da ein Problem.
Habe zwei Frames im linken ist das Menu und im rechten der Inhalt.
Problem was ich habe ist das immer beide Frames beim klicken aktualisiert werden. In den Content-Frame läd es dann zwar den richtigen Content aber das Menu müsste ja nicht aktualisiert werden. Da bräuchte ich ja keine Frames zu machen.
Frage also, wie bekommt man das hin das nur der Content aktualisiert wird wenn man die Menupunkte klickt.
# Default PAGE object:
###FRAMESETS###
frameset = PAGE
frameset.typeNum = 0
links = PAGE
links.typeNum = 1
rechts = PAGE
rechts.typeNum = 2
frameset.frameset {
cols = 50, *
params = border="0" framespacing="0" frameborder="NO"
1 = FRAME
1.obj = links
1.params = scrolling="NO" noresize frameborder="NO" marginwidth="0" marginheight="0"
2 = FRAME
2.obj = rechts
2.params = scrolling="AUTO" noresize frameborder="NO"
}
###SEITE MIT DEM INHALT###
seite = PAGE
seite.typeNum = 1
seite.target = rechts
seite.20 = TEMPLATE
seite.20 {
template = FILE
template.file = fileadmin/design/rechts.htm
workOnSubpart = DOKUMENT
marks {
LEFT = CONTENT
LEFT.table = tt_content
}
}
###SEITE MIT DEM MENU###
seiteb = PAGE
seiteb.typeNum = 2
seiteb.target = links
seiteb.20 = HMENU
seiteb.20.special = directory
seiteb.20.special.value = 42
###seiteb.20.entryLevel = 0
seiteb.20.1 = GMENU
seiteb.20.1.target = _top
seiteb.20.1 {
expAll=1
NO {
XY = 120, 20
10 = TEXT
10.text.field = title
10.fontsize = 10
10.fontcolor = blue
10.offset = 10, 20
10.niceText = 0
}
}
Hoffe mir kann jemand helfen.
Gruß Marcus
z.Z. bin ich dabei, auf einer mit mehreren Frames erstellten Testsite zu experimentieren. (steht unter http://gh.vidalo.com - kannst ja mal reinschauen). Dort habe ich ein GMENU_FOLDOUT gesteuertes Menü eingebaut. Den Code stelle ich Dir hier mal zur Veranschaulichung ein. Die entsprechenden Frames heißen auch logo.html, top.html, menue.html, main.html und bottom.html und besitzen die entsprechenden Einträge unter ###<...>_DOKUMENT### . Zu besseren Veranschaulichung habe ich auch testweise den Framespace auf "4" gesetzt, nur damit ich während der Exp-phase einen besseren Überblick habe.
Vielleicht hilft Dir der folgende TYPO-Code weiter. Wenn nicht, poste einfach mal zurück, was und wie du es genau meinst.
#******************************************
# OBJEKT DEFINITION
#******************************************
logo = PAGE
logo.typeNum = 1
logo.bodyTag = <body bgcolor=#214563>
logo.stylesheet = fileadmin/templates/frames/css.css
top = PAGE
top.typeNum = 2
top.bodyTag = <body bgcolor=#214563>
top.stylesheet = fileadmin/templates/frames/css.css
menue = PAGE
menue.typeNum = 3
menue.bodyTag = <body bgcolor=#214563>
main = PAGE
main.typeNum = 4
main.bodyTag = <body bgcolor=#399FBC>
bottom = PAGE
bottom.typeNum = 5
bottom.bodyTag = <body bgcolor=#214563>
bottom.stylesheet = fileadmin/templates/frames/css.css
#*******************************************
# FRAMESET DEFINITION
#*******************************************
outer_frameset = PAGE
outer_frameset.typeNum = 0
outer_frameset.frameSet.rows = 90,*
outer_frameset.frameSet.params = framespacing="4" bordercolor="#ffffff" frameborder="0" border="0"
outer_frameset.frameSet {
1 = FRAMESET
1.params = framespacing="4" bordercolor="#42516B" frameborder="0" border="0" marginheight="0"
1.cols = 166,*
1 {
1 = FRAME
1.obj = logo
1.params = frameborder="0" noresize marginheight="0" border="0" scrolling="NO"
2 = FRAME
2.obj = top
2.params = frameborder="0" noresize marginheight="0" border="0" scrolling="NO"
}
2 = FRAMESET
2.params = framespacing="4" frameborder="0" border="0" marginheight="0"
2.cols = 166, *
2 {
1 = FRAME
1.obj = menue
1.params = frameborder="0" marginheight="0" border="0" scrolling="NO" target="_content"
3 = FRAMESET
3.params = framespacing="4" frameborder="0" border="0" marginheight="0"
3.rows = *, 50
3{
1 = FRAME
1.obj = main
1.params = frameborder="0" marginheight="0" marginwidth="0" border="0" scrolling="AUTO"
2 = FRAME
2.obj = bottom
1.params = frameborder="0" marginheight="0" marginwidth="0" border="0" scrolling="NO"
}
}
}
#**********************************************
# DEFINITION UND EIGENSCHAFTENDER EINZELNEN FRAMES
#**********************************************
### LOGO ###
logo.10 = IMAGE
logo.10.file = fileadmin/templates/images/logo-web.jpg
### TOP ###
top.10 = IMAGE
top.10.file = fileadmin/templates/images/banner.jpg
### MENUE ###
menue.includeLibs.tmenu_layers = media/scripts/tmenu_layers.php
menue.includeLibs.gmenu_layers = media/scripts/gmenu_layers.php
menue.includeLibs.gmenu_foldout = media/scripts/gmenu_foldout.php
menue.10 = TEMPLATE
menue.10 {
template = FILE
template.file = fileadmin/templates/frames/menue.html
workOnSubpart = MENUE_DOCUMENT
marks.MENUE = HMENU
marks.MENUE.special = directory
marks.MENUE.special.value = 1
marks.MENUE.entryLevel = 0
marks.MENUE.1 = GMENU_FOLDOUT
marks.MENUE.1 {
target = main
expAll=1
collapse=1
NO {
backColor = |*| #123456 || #2345678|*|
wrap = |
XY = 167,20
10 = TEXT
10.text.field = title
10.fontSize = 13
10.fontColor = #FFA600
10.fontWeight = bold
10.offset = 5,18-4
10.niceText = 0
RO < .NO
RO = 1
}
}
marks.MENUE.2 = GMENU
marks.MENUE.2 {
target = main
expAll=1
collapse=1
NO {
backColor = |*| #123456 || #2345678 |*|
wrap = <br>|
XY = 167,18
10 = TEXT
10.text.field = title
10.fontSize = 12
10.fontColor = #FFFFFF
10.offset = 10,12
10.niceText = 0
RO < .NO
RO = 1
}
}
}
### MAIN ###
main.10 = CONTENT
#main.10.table = tt_content
main.20 < styles.content.get
main.30 < styles.content.getLeft
main.40 < styles.content.getRight
main.50 < styles.content.getBorder
### BOTTOM ###
bottom.10 = TEXT
### MAIN ###
main.10 = CONTENT
main.20 < styles.content.get
main.30 < styles.content.getLeft
main.40 < styles.content.getRight
main.50 < styles.content.getBorder
### BOTTOM ###
bottom.10 = TEXT
Der MENUE FRAME als Html-Datei:
<!DOCTYPE html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>MENUE</TITLE>
<!-- ###HEADER_CODE### start-->
<STYLE type="text"/>
<link rel="stylesheet" type="text/css" href="css.css">
<style type="text/css"><!--@import url(css.css)//-->
</style>
<!-- ###HEADER_CODE### stop-->
</HEAD>
<BODY bgcolor=#085D84>
<!-- ###MENUE_DOCUMENT### start-->
###MENUE###
<!-- ###MENUE_DOCUMENT### stop-->
</BODY>
</HTML>
Vielen Dank Rolf für diesen Code! :p
Ein Problem habe ich noch: Ich habe den Code auf der ersten Seite unter Setup eingetragen. Nun sehe ich aber, egal auf welchen Menüpunkt ich klicke, immer diesen Startframe ohne Content. Ebenso, wenn ich im Backend auf eine Unterseite mit Content die Vorschau anzeige, erhalte ich stets diese Startseite ohne Inhalt. Selbst die Eingabe eines Content-Elements auf der Startseite wird nicht angezeigt.
Wo muss ich diesen Code eintragen, damit die untergeordneten Seiten angezeigt werden` :o
Siehe http://dajh.de/cms/index.php?id=3