Einzelnen Beitrag anzeigen
  #1  
Alt 06.05.07, 20:52
bert_es bert_es ist offline
Forum Zuschauer
 
Registriert seit: 06.05.07
Beiträge: 1

Template erstellen mit plugin.tx_automaketemplate_pi1


Hallo,

ich versuche ein Template zu erstellen gemäß der Anleitung
http://typo3.org/documentation/docum....0.2/view/1/3/ zu erstellen, aber leider bekomme ich es nicht hin.

Mein Template sieht folgendermaßen aus:
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/content.tpl
# 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
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/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
# Substitute the ###menu### subpart with some example content:
subparts.menu = TEXT
subparts.menu.value = HELLO WORLD - MENU
# Substitute the ###content### subpart with some example content:
subparts.content = TEXT
subparts.content.value = HELLO WORLD - CONTENT
}
# 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

Mein Template sieht folgendermaßen aus - immerhin wird der Titel richtig gesetzt. Meine Frage ist, was ich falsch mache. In dem Tutorial soo man angeblich die Templates herunterladen können, aber die finde ich leider nicht. Kann mir jemand von Euch da behilflich sein. Das kann doch nicht so schwer sein, oder?

<html>
<head>
<!-- ###DOCUMENT_HEADER### begin -->
<title>Titel: </title>
<!-- ###DOCUMENT_HEADER### end -->
</head>
<body>
<!-- ###DOCUMENT_BODY### begin -->
<div class="title">
<!--###PAGE_TITLE### begin-->
Title of page
<!--###PAGE_TITLE### end-->
</div>
<table width="100%">
<tr width="30%">
<!--####menu### begin -->
<div id="menu">
Men&uuml:
</div>
<!--####menu### end -->
</tr>
<tr width="70%">
<!--####content### begin -->
<div id="content">
Content
</div>
<!--####content### begin -->
</tr>
</table>
<!-- ###DOCUMENT_BODY### end -->
</body>
</html>

Aber ich erhalte leider immer eine leere HTML-Seite.

<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!--
This website is powered by TYPO3 - inspiring people to share!
TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
TYPO3 is copyright 1998-2006 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
Information and contribution at TYPO3 CMS: typo3.com and http://typo3.org/
-->



<title>Titel: Startseite</title>
<meta name="generator" content="TYPO3 4.1 CMS" />
<script type="text/javascript">
/*<![CDATA[*/
<!--
var browserName = navigator.appName;
var browserVer = parseInt(navigator.appVersion);
var version = "";
var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror" || browserName=="Opera") {version = "n3";} else {version = "n2";}
// Blurring links:
function blurLink(theObject) { //
if (msie4) {theObject.blur();}
}

// -->
/*]]>*/
</script>


</head>
<body>


</body>
</html>

Geändert von bert_es (06.05.07 um 21:17 Uhr).
Mit Zitat antworten