Zum Inhalt springen

TMENU Level in unterschiedlichen Tabellen anzeigen

Erstellt am 4. Juni 2003 · 2 Antworten · letzte Antwort am 27. September 2004

Tags: Frage

Moellers ·

Hi,
habe ein Problem mit dem folgenden Menue. Level 1-2 in der Linken Tabelle werden ohne Probleme angezeigt. Level 3 soll in der rechten Tabelle erscheinen. Leider sehe ich dort nix. Kann mir einer von Euch vielleicht nen Tipp geben wie ich das ändern kann?

Gruss und Danke
Andreas

Wenn ich zwei Instanzen von HMENU anlegen (links und rechts) funktioniert es einwandfrei. Nur leider kann ich dann nicht nur im Rechten Level 3 anzeigen wenn im Linken Level 2 angeklickt ist.

Hier das Template (Setup) alles andere leer

# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/template.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/
}
 
# Menu 1 cObject
temp.menu1 = HMENU
  # First level menu-object, textual
temp.menu1.1 = TMENU
temp.menu1.1 {
    # Normal state properties
  NO.allWrap = <div class="menu1-no"> | </div>
}
temp.menu1.2 = TMENU
temp.menu1.2 {
    # Normal state properties
  NO.allWrap = <div class="menu1-no1"> | </div>
}

# Menu 2 cObject

temp.menu2 = TMENU
temp.menu2.1 {
    # Normal state properties
  NO.allWrap = <div class="menu1-no2"> | </div>
}


# 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 ###menu1### subpart with dynamic menu:
  subparts.menu1 < temp.menu1

    # Substitute the ###menu2### subpart with dynamic menu:
  subparts.menu2 < temp.menu2

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

}
 
 
# 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