Zum Inhalt springen

Kurze Frage zu einem Menueproblem

Erstellt am 2. August 2004 · 1 Antwort · letzte Antwort am 2. August 2004

Tags: Frage

Dirk Büchel ·

Ich habe versucht mir ein neues Template Anhand des Dokus: Modern Template.

Soweit so gut.... es funktioniert auch alles mir 4 Rubriken etc.

Nun will ich ein Menue automaisch erstellten lassen und habe im Code folgendes eingetragen:

# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/template1.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/main/
}
 

marks.hauptmenue = HMENU
marks.hauptmenue.special = directory
marks.hauptmenue.special.value = 1
marks.hauptmenue.1 = GMENU
marks.hauptmenue.1 {
NO {
backColor = #98B3F8
XY = [10.w]+10 , 18
10 = TEXT
10.text.field = title
10.fontFile = fileadmin/template/main/verdana.ttf
10.fontColor = black
10.fontSize = 10
10.offset = 5,12
10.niceText = 0
}
}




# 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_1### subpart with some example content:
  subparts.menu_1 = TEXT
  subparts.menu_1.value = HELLO WORLD - MENU


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

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

    # Substitute the ###hauptmenue### subpart with some example content:
  subparts.hauptmenue < menu_OBEN


    # Substitute the ###menuueberschrift### subpart with some example content:
  subparts.menuueberschrift= TEXT
  subparts.menuueberschrift.value = HELLO WORLD - menuueberschrift

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

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

}



# 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

Da ich noch absoluter Anfänger bin bitte ich um nachsicht 😉

Was habe ich falsch gemacht.... ??

Wo muss ich eigentlich in diesem SETUP die weiteren CODES einfügen ?? Vor dem Main Template cCObjekt ???

Gruss

db

Dirk Büchel ·

Kurze Frage:

Es ist vielleicht besser alles OHNE AutoTemplate zu machen ???

Damit mann TYPO3 besser versteht !??!?

gruss

db