Zum Inhalt springen

GMENU-LAYERS die 100.

Erstellt am 24. Mai 2003 · Noch keine Antworten

Tags: Frage

matthiBCN ·

So, jetzt muss ich auch mal in die Bütt...es hilft ja nix.....

Also, kurz und knapp:

html code:
...
<tr height="20">
<td bgcolor="#5A76B6" width="257" height="20" ><font color="#FFFFFF"><!--###SPRACHE### start--> Castellano
| Deutsch | English</font><!--###SPRACHE### stop--></td>

<td width="5" height="20" ></td>
<td height="20" colspan="3" bgcolor="#D6DF63">###MENU###</td>
</tr>
.....

und der typoCode:

includeLibs.gmenu_layers = media/scripts/gmenu_layers.php

# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/template_2b.html

# Here we define which elements in the HTML that
# should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY

HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title

TD.all = 1
}

# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/
}

# Define the Menu
# temp.menu = HMENU
# temp.menu.1 = GMENU
# temp.menu.1.NO {
# XY = [10.w]+20,20
# backColor = |*| #000000 || #99A129|*|
# 10 = TEXT
# 10.fontColor = black
# 10.text.field = title
# 10.offset = 0,14
# 10.align = center
# }

# MENU TEST
temp.MENU = HMENU
temp.MENU.1 = GMENU_LAYERS
temp.MENU.1 {
layerStyle = position:absolute;left:150px;top:149px;width:10px;VISIBILITY:hidden;
xPosOffset =-260
lockPosition = x
expAll=1
NO {
backColor = #eeffaa
XY = [10.w]+20, 20
10 = TEXT
10.text.field = title
10.offset = 5,12
}
}
temp.MENU.2 = GMENU
temp.MENU.2.wrap = |<br>
temp.MENU.NO {
backColor = |*| #99A129 || #D6DF63|*|
XY = 120, 14
10 = TEXT
10.text.field = title
10.offset = 5, 10
}

# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY

# Substitute the ###MENU### marker
marks.MENU < temp.MENU

# Substitute the ###content### subpart with some example content:
subparts.CONTENT < styles.content.get

# Substitute the ###content### subpart with some example content:
subparts.SPRACHE = TEXT
subparts.SPRACHE.value = HUHU COntent

# KLickpfadtest
marks.KLICKWEG = HMENU
marks.KLICKWEG {
special = rootline
special.range = 0|-1
1 = TMENU
1.target = _self
1.wrap = <font face="Arial" size="1">|</font>
1.NO.linkWrap = | ->
}

}


# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}




# Default PAGE object:
page = PAGE
page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate

Als Resultat erhalte ich das menü der "ersten Ebene" sprich, alle 5 Hauptpunkte erscheinen einwandfrei.....es fehlen aber komplett sämtliche layer mit den "sublinks"

Ein Hinweis, der mir interessant scheint.....

Anfangs hatte ich mit subpart gearbeitet, statt mit marks...

also <!-- ###menu --> <td...../td> <!-- ###menu### -->

und im typo subparts.MENU < temp.MENU

In diesm Falle hatte ich zwar sämtliche Layer perfekt, allerdings hatte es mir mein layout zerschossen....die tabellenzelle <td> war sehr viel höher...

Für einen Tipp wäre ich sehr dankbar, wir sind schon seid mehrern Stunden mir dem Problem befasst... :o/

in diesem sinne.....happy weekend