Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 07.10.07, 20:57
Forum Newbie
 
Registriert seit: 31.03.07
Beiträge: 19

Typoscript Fehler bei Autoparser-Setup


Folgendes Script funktioniert bei mir nicht wie es soll.
Vor allem die Supart-Marker für DOCUMENT_BODY und HEAD
sind im aufbereiteten HTML nicht ersichtlich.
Die Marker für die DIVs wurden korrekt gesetzt.

Ich komme im Moment einfach nicht auf meinen Fehler.

Das Parser Plugin ist natürlich installiert.

Vielleicht kann mich ja ein geübter Scripter erlösen...

Vielen Dank

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
plugin.tx_automaketemplate_pi1 {
content = FILE
content.file = fileadmin/templates/default.tmpl

elements{

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

HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEAD

HEAD.rmTagSections = title

DIV.all = 1
}

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

temp.bodyTemplate = TEMPLATE
temp.bodyTemplate{
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_BODY

subparts.heading = TEXT
subparts.heading.value = Hier kommt Heading
#subparts.language =< temp.language
#subparts.shortcuts =< temp.shortcuts
#subparts.navigation =< temp.navigation
}

temp.headTemplate = TEMPLATE
temp.headTemplate{
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_HEAD
}

page = PAGE
page.typeNum = 0
#page.config.disableAllHeaderCode = 1

page.10 < temp.bodyTemplate
page.headerData.10 < temp.headTemplate
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
  #2  
Alt 09.10.07, 15:05
Benutzerbild von christiana83
Forum Stammgast
 
Registriert seit: 04.07.06
Ort: Gotha
Alter: 25
Beiträge: 401
christiana83 eine Nachricht über ICQ schicken christiana83 eine Nachricht über Skype™ schicken

Ja ich glaube es könnte schon daran liegen, dass du teilweise die Klammern nicht richtig setzt.

Mach das mal anders:

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
plugin.tx_automaketemplate_pi1 {

   # Read the template file:
content = FILE
content.file = pfad/zum/template.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

DIV.all =1

}

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

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

   #---hier kommen die eigenen Marker rein, z.B.----------------------


subparts.heading = TEXT
subparts.heading.value = Hier kommt Heading


}   


#---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
}
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 09.10.07, 19:19
Forum Newbie
 
Registriert seit: 31.03.07
Beiträge: 19

Ich habe deine Variante ausprobiert und konnte keinen Unterschied feststellen.
Darüber hinaus habe ich die beiden Snipplets verglichen - identisch.

Ich gehe also erst mal davon aus das es wohl doch kein Syntax-Fehler ist.
Vielleicht ist irgend etwas falsch konfiguriert - ich weiß aber nicht was das sein könnte, da das Autoparsing anscheinend teilweise funktioniert.

Das Template sieht so aus:
HTML-Code:
<html> <head> <link href="elfwyn.css" rel="stylesheet" type="text/css"/> <script language="javascript" src="elfwyn.js"></script> </head> <body> <div id="heading"></div> <div id="shortcuts"></div> <div id="language"></div> <div id="navigation"></div> </body> </html>
Das Ergebnis ist hier:
HTML-Code:
<!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 
wners.
	Information and contribution at http://typo3.com/ and http://typo3.org/
--> <link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_e99aac0be0.css" /> <link href="fileadmin/elfwyn.css" rel="stylesheet" type="text/css" /> <script language="javascript" src="fileadmin/elfwyn.js"></script> <title>Home</title> <meta name="generator" content="TYPO3 4.1 CMS" /> <script type="text/javascript" src="typo3temp/javascript_757c080409.js"></script> </head> <body> <div id="heading"><!--###heading### begin --><!--###heading### end --></div> <div id="shortcuts"><!--###shortcuts### begin --><!--###shortcuts### end --></div> <div id="language"><!--###language### begin --><!--###language### end --></div> <div id="navigation"><!--###navigation### begin --><!--###navigation### end --></div> </body> </html>
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

Lesezeichen

Themen-Optionen
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 hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-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
v4.1.6 - Problem mit TS und Autoparser g3ntleman TYPO3 4.x Fragen und Probleme 4 08.04.08 11:13
Gelöst TypoScript Setup wird nicht ausgelesen Anderl Extension modifizieren oder neu erstellen 2 18.03.08 16:46
Fehler im TypoScript conny naumann TYPO3 4.x Fragen und Probleme 1 20.02.08 13:46
TemplaVoila vs. Autoparser jcl TYPO3 4.x Fragen und Probleme 4 06.10.07 20:15
typoScript in setup.txt Sareen TYPO3 4.x Fragen und Probleme 1 04.02.07 14:01


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


Powered by vBulletin® Version 3.7.3 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0