Zum Inhalt springen

Grundsätzliche Frage zu Frames und Menü

Erstellt am 27. August 2003 · 2 Antworten · letzte Antwort am 23. Dezember 2003

Tags: Frage

Muh ·

Hallo,
ich habe eine grundsätzliche Frage zum Frame mit Menü.Wenn ich ein Template mit Frameset habe wird nur das 1.Level angezeigt. Wie bekomme ich das 2.Level?
Binde ich in das Setup die "NOFRAMES-Version" ein, funktionert auch das 2.Level nur alles ist in einer Tabelle und es ist kein Frame mehr zu sehn.
Funktioniert das 2. Level nur mit der "NOFRAME-Version" ?
Habe ich eine Denkfehler?
Hatte das Prblem wahrscheinlich auch schon hier
#4724
nur ist mir das nicht aufgefallen.
Hier nun mein Code:

##############################
#PAGE
##############################

page = PAGE
left = PAGE
top = PAGE
bottom = PAGE


page.typeNum = 1
left.typeNum = 2
top.typeNum = 3
bottom.typeNum = 4

#------------------
# Defining the main-frame
#------------------
page.10 = TEXT
page.10.value = The main-frame

#-----------------
# Defining the left-frame
#-----------------
left.10 = TEXT
left.10.value = The left-frame

#----------------
# Defining the top-frame
#---------------
top.10 = TEXT
top.10.value = The top-frame

#--------------
#Defining the bottom-frame
#--------------
bottom.10 = TEXT
bottom.10.value = The bottom-frame

#################
#Frameset
#################
outer_frameset = PAGE
outer_frameset.typeNum = 0

#-------------------------
# Defining the  frameset
#-------------------------
outer_frameset.frameSet.rows = 100,*
outer_frameset.frameSet.params = border="0" framespacing="0" frameborder="NO"
outer_frameset.frameSet {
   1 = FRAME
   1.obj = top
   1.params = scrolling="NO" noresize frameborder="NO" marginwidth="0" marginheight="0"

   2 = FRAMESET
   2.cols = 160, *
   2 {
      1 = FRAME
      1.obj = left
      1.params = scrolling="NO" noresize frameborder="NO" marginwidth="0" marginheight="0"
      
   3 = FRAMESET
   3.rows = *, 30
   3 {
      1 = FRAME
      1.obj = page
      2 = FRAME
      2.obj = bottom
      2.params = scrolling="NO" noresize frameborder="NO" marginwidth="0" marginheight="0"
      }
   }
}

# ######################################################
# Defining the content-frame, "page"
# *************************
# Header code, stylesheet
page.headerData.10 = TEMPLATE
page.headerData.10 {
template = FILE
template.file = fileadmin/w3/main.html
workOnSubpart = HEADER_CODE
}

#-------------------------
# Bodytag
#-------------------------
page.bodyTag = <BODY bgcolor="#D5E3FF">

#----------------
# Page-content 
#----------------
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/w3/main.html
workOnSubpart = DOCUMENT_BODY
subparts.CONTENT < styles.content.get
subparts.PAGE_HEADER = TEXT
subparts.PAGE_HEADER.field = title
}

######################################################
# Defining the top-frame, "top"
# *************************

#-----------------------------
# Header code, stylesheet
#-----------------------------
top.headerData.10 = TEMPLATE
top.headerData.10 {
template = FILE
template.file = fileadmin/w3/top.html
workOnSubpart = HEADER_CODE
}

#------------------
# Bodytag
#------------------
top.bodyTag = <BODY bgcolor="#6E7BA7" leftmargin="0" topmargin="0" >

#------------------
# Page-content
#------------------
top.10 = TEMPLATE
top.10 {
template = FILE
template.file = fileadmin/w3/top.html
workOnSubpart = DOKUMENT
############################
#Clickpfad
#########
marks.MENU_OBEN = HMENU 
marks.MENU_OBEN{ 
special = rootline 
special.range = 0|0 
special.targets.3 = page 
1 = TMENU 
1.target = _top 
1.wrap = <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><font color="{$cSet.color2}" size="1">Sie befinden sich hier:</font></td></tr><tr bgcolor="{$cSet.color3}"><td><font color="{$cSet.color2}" size="1"><font color="{$cSet.color3}"> </font> | </font></td></tr></table> 
1.NO { 
linkWrap = | >&nbsp; 
} 

1.CUR < 1.NO 
1.CUR = 1 
1.CUR { 
doNotLinkIt = 1 
linkWrap = | >&nbsp; 
} 
} 


}
# *************************
# Defining the top-frame, "bottom"
# *************************

#-----------------------------
# Header code, stylesheet
#-----------------------------
bottom.headerData.10 = TEMPLATE
bottom.headerData.10 {
template = FILE
template.file = fileadmin/w3/bottom.html
workOnSubpart = HEADER_CODE
}

#------------------
# Bodytag
#------------------
bottom.bodyTag = <BODY bgcolor="#FCB404" leftmargin="0" topmargin="0">

#------------------
# Page-content
#------------------
bottom.10 = TEMPLATE
bottom.10 {
template = FILE
template.file = fileadmin/w3/bottom.html
workOnSubpart = DOKUMENT
}

# *************************
# Defining the menu-frame, "left"
# *************************

#----------------------------
# Header code, stylesheet
#----------------------------
left.headerData.10 = TEMPLATE
left.headerData.10 {
template = FILE
template.file = fileadmin/w3/left.html
workOnSubpart = HEADER_CODE
}

#----------------------------
# Bodytag
#----------------------------
left.bodyTag = <BODY bgcolor="#6E7BA7">

#---------------------------
# Page-content
#---------------------------
left.10 = TEMPLATE
left.10 {
template = FILE
template.file = fileadmin/w3/left.html
workOnSubpart = DOCUMENT_BODY
subparts.MENU_ITEMS = HMENU
subparts.MENU_ITEMS.1 = GMENU
subparts.MENU_ITEMS.1.target = page
subparts.MENU_ITEMS.1.entryLevel = 1
subparts.MENU_ITEMS.1.NO {
expAll = 0
XY = [5.w],[5.h]

5 = IMAGE
5.file = fileadmin/w3/menuback.gif
10 = TEXT
10.text.field = title
10.text.case = upper
10.offset = 12,12
10.fontColor = blue
10.fontFile = t3lib/fonts/verdana.ttf
10.fontSize = 11
wrap = |
}
subparts.MENU_ITEMS.1.RO < .subparts.MENU_ITEMS.1.NO 
subparts.MENU_ITEMS.1.RO = 1 


#Einstellungen für die zweite Ebene des linken Menüs 

subparts.MENU_ITEMS.2 = GMENU 
subparts.MENU_ITEMS.2.target = _top
subparts.MENU_ITEMS.2.NO { 
XY = 137,20 


10 = TEXT 
10.fontSize = 10 
10.text.field = title 
10.offset = 5,15 
10.align = left 
10.fontColor = red 
wrap = &nbsp;&nbsp;| 

} 

subparts.MENU_ITEMS.2.RO < .subparts.MENU_ITEMS.2.NO 
subparts.MENU_ITEMS.2.RO = 1 

} 
###########################################
##########
##Defininig how the site should look with NO frames
#######

noframes = PAGE
noframes.typeNum = 0

#Header code, stylesheet
noframes.headerData.10 = TEMPLATE
noframes.headerData.10 {
template = FILE
template.file =fileadmin/w3/main.html
workOnSubpart = HEADER_CODE
}

#Bodytag
noframes.bodyTag = <BODY bgcolor="#D5E3FF" />
noframes.bodyTagMargins = 0

#Page-content
noframes.10 = TEMPLATE
noframes.10 {
template = FILE
template.file = fileadmin/w3/noframes.html
workOnSubpart = DOCUMENT_BODY
marks.TOP < top.10
marks.CONTENT < page.10
marks.BOTTOM < bottom.10
marks.LEFT < left.10
marks.LEFT.subparts.MENU_ITEMS.1.target =_top
}

Ich hoffe mal ich habe mich nicht zu kompliziert ausgedrückt.
Danke Muh

Flink ·

Der Fehler liegt in:

########################################### 
########## 
##Defininig how the site should look with NO frames 
####### 

noframes = PAGE 
noframes.typeNum = 0 

#Header code, stylesheet 
noframes.headerData.10 = TEMPLATE 
noframes.headerData.10 { 
template = FILE 
template.file =fileadmin/w3/main.html 
workOnSubpart = HEADER_CODE 
}

Es darf nicht 2 PAGE mit typeNum = 0 geben.