[Typo3-german] Problem mit subparts

Thomas Mammitzsch typo at pure.kicks-ass.net
Fri Aug 5 14:50:06 CEST 2005


Hallo Leute,

ich habe das Problem, das Typo subparts nicht mit Inhalt füllt. Die 
Subpartmarker werden korrekt angezeigt. Habt ihr vielleicht eine Idee?

Gruß, Thomas

Hier mein TS:

###Template Auto-Parser###
plugin.tx_automaketemplate_pi1{
   content = FILE
   content.file = fileadmin/test/templates/agb.html
   relPathPrefix = fileadmin/test/
   elements {
     BODY.all = 1
     BODY.all.subpartMarker = DOCUMENT_BODY
     HEAD.all = 1
     HEAD.all.subpartMarker = DOCUMENT_HEADER
     HEAD.rmTagSections = title
     DIV.all = 1
   }
}

###cObject Header###
temp.headerTemplate = TEMPLATE
temp.headerTemplate{
   template =< plugin.tx_automaketemplate_pi1
   workOnSubpart = DOCUMENT_HEADER
}

###cObject Body###
temp.mainTemplate = TEMPLATE
temp.mainTemplate{
   template =< plugin.tx_automaketemplate_pi1
   workOnSubpart = DOCUMENT_BODY
   subparts.contentcontainer < styles.content.get
}



# Seite erstellen:
page = PAGE
page.config.doctype = <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
page.typeNum = 0
page.headerData.10 < temp.headerTemplate
page.5 = TEXT
page.5.value = Test
page.10 < temp.mainTemplate

-----------------------------------------------------------------
hier mein HTML-Template:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Unbenanntes Dokument</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>

<body>
<div id="contentcontainer"></div>
<div id="breaker" class="list-top"></div>
<table width="100%"  border="0" cellspacing="0" cellpadding="0" 
class="product">
   <tr>
     <td class="TITLE">Allgemeine Gesch&auml;fts- und Lieferbedingungen</td>
   </tr>
   <tr>
     <td><div id="breaker" class="list-middle"></div></td>
   </tr>
   <tr>
     <td></td>
   </tr>
</table>

</body>
</html>
----------------------------------------------------------------



More information about the TYPO3-german mailing list