Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten Ansicht
  #1  
Alt 08.03.06, 11:10
Forum Zuschauer
 
Registriert seit: 07.03.06
Ort: Köln
Alter: 31
Beiträge: 3

Modern Template Building, Part 1: weisse Seite :-(


Hallo Forum,

habe mich jetzt mal an's Modern Template Building Tutorial gemacht. Da ich so ein learning-by-doing Typ bin, habe ich mir aber direkt ein eigenes Template gebastelt, benutze also nicht die Original Dateien aus dem Tutorial; das nur vorweg.
Im letzten funktionierenden Schritt wurde mein Template einfach wieder 1:1 ausgegeben, das Pfadersetzen hat geklappt und das Markereinfügen (bei mir: jeder div Tag bekommt einen Marker) auch. Dann geht's ja los mit content ersetzen und jetzt bekomme ich eine leere Seite, die im Quelltext auch wieder die Typo3 Sachen drinstehen hat. Mein Script sieht so aus:
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:
59:
60:
61:
62:
# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {

  # Read the template file:
content = FILE
content.file = fileadmin/template/template.htm

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

Und wie gesagt - ich habe am Template nichts geändert, sondern nur das Skript verbogen. Ich vermute, dass das copying schief geht?

---

EDIT:
Jetzt klappt's wieder. Ich hatte - wie auf einem der ersten Screenshots - manuell DOCUMENT_BODY und .._HEADER Tags gesetzt. Jetzt hab' ich selbige gekillt und es funktioniert wieder.

Geändert von 99gnome (08.03.06 um 11:31 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
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
weisse seite - sonst nichts Averlon TYPO3 4.x Fragen und Probleme 13 27.02.08 14:07
tt_news plugin - weisse Seite - franky1972 News (tt_news, mininews und Co) 9 24.08.07 09:37
Problem mit Warenkorb (weisse seite) Hippy tt_products 1 31.05.07 14:14
Templa Voila oder Modern Template Building? Winddancer TYPO3 4.x Fragen und Probleme 2 09.05.06 17:14
Installationstool zeigt nur weisse Seite dstev TYPO3 3.x Fragen und Probleme 2 06.04.05 09:29


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:49 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