[Typo3-german] Template wird nicht dargestellt

Michael Post michael.post at purematic.de
Mon Dec 12 22:00:15 CET 2005


Hallo,

merkwürdigerweise wird mein Template über das Plugin automake nicht 
dargestellt.

Es ist hier Absicht, dass ich zweimal das gleiche Template darstellen 
möchte. Aber selbst das funktioniert nicht einmal.

Die Pfade zum Template sind richtig. Das Template wird exakt EINMAL 
dargestellt. Der zweite Aufruf scheint nicht durchzugehen, nur verstehe 
ich nicht warum?


Zwischenfrage:

Gibt es eigentlich eine Datei mit eventuellen Fehlermeldungen von 
TypoScript??



Hier mein Template (nur die betreffenden Zeilen):

#### Globale configuration ####
# set locale settings
config.locale_all = de_DE


#### Implement the Main-Template and his Procedure ####

# Configuring the Auto-Parser for content:
plugin.tx_automaketemplate_pi1 {
  # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/index.html

  # Here we define which elements in the HTML that
  # should be wrapped in subpart-comments:
  elements {
   HEAD.all = 1
   HEAD.all.subpartMarker = DOCUMENT_HEADER
   HEAD.rmTagSections = title

   BODY.all = 1
   BODY.all.subpartMarker = DOCUMENT_BODY

   TD.all = 1
   TABLE.all = 1
   SPAN.all = 1
  }

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










#### Implement the ExtranetLogin-Template and his Procedure ####

# Configuring the Auto-Parser for content:
plugin.tx_automaketemplate_pi2 {
  # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/index.html

  # Here we define which elements in the HTML that
  # should be wrapped in subpart-comments:
  elements {
   HEAD.all = 1
   HEAD.all.subpartMarker = DOCUMENT_HEADER
   HEAD.rmTagSections = title

   BODY.all = 1
   BODY.all.subpartMarker = DOCUMENT_BODY

   TD.all = 1
   TABLE.all = 1
   SPAN.all = 1
  }

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








#### Proceed Header ####

# 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
}




....

#### Proceed Document_body and replace placeholder in main-template ####

# 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

....

  # Shows the ###Aktuelles_content### subpart only if the the 
content-site is index
  subparts.extranet_login < plugin.tx_automaketemplate_pi2

}


# Default PAGE object:
page = PAGE
page.typeNum = 0

# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate

page.11 < plugin.tx_automaketemplate_pi2



More information about the TYPO3-german mailing list