Zum Inhalt springen

Erster Menütest -

Erstellt am 8. Januar 2006 · 2 Antworten · letzte Antwort am 9. Januar 2006

Tags: Frage

beelzebub ·

Hi,
ich versuche nun mal mein erstes Testmenü zu erstellen.Es wird leider nicht angezeigt.

# 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
    DIV.all = 1
    UL.all = 1
  }

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


######Navitest

temp.navi = HMENU
temp.navi.entryLevel = 1
 temp.navi.1 = TMENU
 temp.navi.1 {
 NO.allWrap = <div id="navi"> | </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 ###navi### subpart with dynamic Menu
  subparts.navi < temp.navi.1
  ##alternativ auch mit temp.navi probiert

    # Substitute the ###content### subpart with some example content:
  subparts.inhalt < 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

Die HTML Vorlage sieht so aus

---Schnipp
<div id="navi"><p align="center">Startseite  </p></div>
<div id="navi"><p align="center">Kanzlei  </p></div>
<div id="navi"><p align="center">Unternehmensphilosophie  </p></div>
----schnapp

Wenn ich statt subparts.navi < temp.navi.1 subparts.navi =TEXT
subparts.navi.value = irgendein Text
mache wird der Text eingefügt.

Ich frage mich auch woher Typo wissen will welche Seiten der Baumstruktur ich meine . Wo es anfängt und wo auf.letzendlich möchte ich 3 Navigationen machen und die Baumliste ist ellenlang

Danke für einen hilfreichen Tritt 😉
Die Dokus sagen mir irgendwie nix mehr. Hab da wohl einige Abstraktionsprobleme.

tizu ·

#
# Substitute the ###navi### subpart with dynamic Menu
#
subparts.navi < temp.navi.1

Ändere mal nach subparts.navi < temp.navi

Gruss

beelzebub ·

Nee das hat auch nichts gebracht. Habe nun erstmal den ganzen Baum verworfen und mache etwas neues.Habe mir eine bessere Anleitung besorgt.