Zum Inhalt springen

automaketemplate und Menü bei extended template

Erstellt am 21. Januar 2011 · 1 Antwort · letzte Antwort am 23. Januar 2011

Tags: Frage

klaus85 ·

Hallo,
ich verwende das Plugin automaketemplate. Damit lass ich mir u.a. ein Menü erstellen.

page = PAGE
page {
  10 = TEMPLATE
  10 {
    # Use the HTML template from the automake template plugin
    template =< plugin.tx_automaketemplate_pi1
    
    # Use the <body> subpart
    workOnSubpart = DOCUMENT_BODY
    
    # Link content and page blocks to id's that have been enabled in the
    # automaketemplate template in the extension_configuration sysfolder
    subparts {    
      topMenu < menu.top
    }
}

Das hab ich in einem anderen TS definiert als HMENU.
Also

menu.top = HMENU
...

Wenn ich jetzt auf einem extended Template die Menüpunkte festlegen will, versuche ich das mit

menu.top.special.value = 20

TS kennt auch menu.top als HMENU (bei der Autovervollständigung), allerdings passiert da einfach nix nach dem Speichern.

page.10.subparts.rightMenu.special.value = 20

funktioniert. Ich würd aber gern die kurze Variante verwenden...
Wo ist mein (Denk)Fehler?

Unbekannter Benutzer ·

Du musst das als Referenz und nicht Kopie zuweisen. Was auf der Seite zu sehen ist, ist ja effektiv page.10.subparts.rightMenu und darein kopierst du menu.top, wenn du nach dem kopieren noch was änderst hilft das halt nicht mehr, außer du machst eine Referenz, dann werden Änderungen direkt übernommen.

page = PAGE
page {
  10 = TEMPLATE
  10 {
    # Use the HTML template from the automake template plugin
    template =< plugin.tx_automaketemplate_pi1
 
    # Use the <body> subpart
    workOnSubpart = DOCUMENT_BODY
 
    # Link content and page blocks to id's that have been enabled in the
    # automaketemplate template in the extension_configuration sysfolder
    subparts {    
      topMenu =< menu.top
    }
}