Zum Inhalt springen

modern template building 2 + page template selector

Erstellt am 31. März 2005 · Noch keine Antworten

Tags: Templates & Layouts, Frage

vendy ·

Hallo Alle,

hilfe.....🙂

habe Probleme mit modern template building 2 und zwar in Frontend wird es nichts gezeigt, einfach so leer...
obwohl ich fast alles wie bei Tutorial modern template building gemacht aber ohne die Extension selbst zu schreiben,

ich schreiben den Code...vielleicht kann Jemand mir tipp geben....

# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
    content < plugin.tx_rlmptmplselector_pi1
    content.defaultTemplateFileNameMain = template_1.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

    TR.all = 1
    TD.all = 1
  }

    # Prefix all relative paths with this value:
  relPathPrefix = fileadmin/template/main/
  relPathPrefix.img = 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>
}
  # Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level2-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level2-act"> | </div>
}


temp.menu_1.2 = TMENU
temp.menu_1.2 {
# Normal state properties
NO.allWrap = <div class="menu1-level2-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level2-act"> | </div>
}

# ------------------------
# Menu 2 cObject - horizontal, one-level menu
# ------------------------

temp.menu_2 = HMENU
# Setting the entryLevel to be subpages to CURRENT page:
temp.menu_2.entryLevel = -1

# First level menu-object, textual
temp.menu_2.1 = TMENU
temp.menu_2.1 {
# Normal state wrapping with alternating wrap-values (see"optionSplit")
NO.allWrap = |*| <td>|</td> || <td class="oddcell">|</td> |*|

# Enable active state and set properties:
ACT = 1
ACT.allWrap = <td class="menu2-level1-act"> | </td>
}

# ------------------------
# Path menu cObject
# ------------------------

temp.path = HMENU
# Setting the special property to "rootline" - this will produce a "Path-menu"
temp.path.special = rootline

# First level menu-object, textual
temp.path.1 = TMENU
# Wrapping value for the whole menu:
temp.path.1.wrap = Path: &nbsp; |
temp.path.1 {
# Normal state properties appending " > " to all elements but the last one.
# (See "optionSplit")
NO.allWrap = |&nbsp;&gt;&nbsp; |*||*| |
}




# 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 dynamic menu:
  subparts.menu_1 < temp.menu_1

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

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


    # 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

plugin.tx_automaketemplate_pi1.content.defaultTemplateFileNameSub = ct_1.html
plugin.tx_automaketemplate_pi1.content.defaultTemplateFileNameMain = template_1.html

und template habe ich von extension Modern template building 2 ......Andere bleibt wie es ist(bilder,usw.), dummy 3.7

danke.