Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten Ansicht
  #1  
Alt 06.05.07, 20:52
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).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Sponsored Links
  #2  
Alt 06.05.07, 23:02
Benutzerbild von MistaD
TYPO3 Forum Team
Moderator
 
Registriert seit: 25.01.06
Beiträge: 1.455

Aslo so auf die schnelle sehe ich evtl. 2 sachen:


sicher das es .tpl heisst denn sonst sind die Endungen immer .tmpl

Typoscript-Code:
1:
content.file = fileadmin/template/content.tpl


hier fehlt am Ende der Slash /

Typoscript-Code:
1:
relPathPrefix = fileadmin/template


Als Tipp, geh das Tutorial nach dem du es aufgabut hast noch einmal Schritt für Schritt durch und benenne die Dateien auch für den Anfang GENAU wie in der Anleitung beschrieben, so vermeidest du als Neuling kleinere Fehler.
__________________
Gruss
MD
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #3  
Alt 06.05.07, 23:13
Benutzerbild von Pie
Pie Pie ist offline
Forum Stammgast
 
Registriert seit: 07.01.07
Ort: Solingen
Alter: 38
Beiträge: 166
Noch ein Tipp

Hi,

ich empfehle die Extension TemplaVoila. Einfacher gehts nicht.

Gruss
- Pie
__________________
Typo3 4.2.1 | TemplaVoila 1.3.6 | RealURL 1.1.0 | DirectMail 2.5.4 | Apache2 | PHP 5.2.0
Was heute noch nicht richtig ist, kann morgen schon falsch sein
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort


Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge anzufügen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

vB Code ist An.
Smileys sind An.
[IMG] Code ist An.
HTML-Code ist Aus.
Trackbacks are An
Pingbacks are An
Refbacks are An


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
News-TEmplate im Plugin zuweisen, trotzdem Änderungen übernehmen mic_jan News (tt_news, mininews und Co) 2 11.03.08 10:51
zusätzliches plugin erstellen lu Extension modifizieren oder neu erstellen 1 07.06.07 09:33
nOOb: Template für Formatierung erstellen Pie TYPO3 4.x Fragen und Probleme 3 11.01.07 07:05
Template erstellen vario TYPO3 4.x Fragen und Probleme 3 25.10.06 17:39
Template erstellen Havefun82 TYPO3 3.x Fragen und Probleme 0 04.06.06 10:42


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:20 Uhr.


Powered by vBulletin® Version 3.6.8 Patch Level 2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Template-Modifikationen durch TMS