Zum Inhalt springen

zweite unabhängiges Menü

Erstellt am 21. Juni 2005 · Noch keine Antworten

Tags: Templates & Layouts, Frage

Torsten72 ·

Hallo ich habe folgendes:

emplate:
plugin.tx_automaketemplate_pi1 {
  content = FILE
  content.file = fileadmin/template/main/k_index_tpl.html
  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/main/
}

 # Menu 1 cObject

temp.menu_1 = HMENU

  # First level menu-object, textual

temp.menu_1.1 = TMENU

temp.menu_1.1{

    # Normal state properties

  NO.allWrap = <div class="menu1-level1-no"> | </div>

    # Enable active state and set properties:

  ACT = 1

  ACT.allWrap = <div class="menu1-level1-act"> | </div>

}

temp.topnavi= HMENU 
#temp.topnavi.special = list
#temp.topnavi.special.value = 64
 #  temp.topnavi.entryLevel = 2
temp.topnavi.1.2= TMENU
temp.topnavi.1.2{ 
        NO.allWrap =  <div class="topnavi"> | </div> 
        ACT = 1
        ACT.allWrap = <div class="topnavi"> | </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

 subparts.menu_1 < temp.menu_1
 subparts.topnavi < temp.topnavi
 subparts.content < styles.content.get
 subparts.left_content < styles.content.getLeft

}
 # 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
 workOnSubpart = DOCUMENT_HEADER

}
page = PAGE
page.typeNum = 0
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate

un im Template soll dieser Bereich geüllt werden mit der zweiten Navi die erste geht:

<div id="topnav">
<!-- ###topnavi### -->
<!-- ###topnavi### -->
</div>

Ich habe dafür einen neuen Unterorder angelegt von dem das zeite Level gezigt werden soll.

Schonaml Besten Dank für eure Hilfe
Torsten