Zum Inhalt springen

Probleme mit HTML-Template

Erstellt am 21. November 2004 · 5 Antworten · letzte Antwort am 27. Januar 2005

Tags: Frage

Frank.​V.​ ·

Hallo Leute,
beim Testen der v3.7.0 ist mir etwas aufgefallen, was ich nicht bisher lösen konnte:
Der Scriptcode unter 3.5.0 funktioniert nicht mehr unter 3.7.0. Es scheint, als ist die funktionsweise
des Autotemplateparser verändert.
Bsp: Eine Hauptseite mit HTML-Template (unter fileadmin/template/main/vorlage.html)
zeigt nichts mehr an - der Bodytag im HTML des Frontends bleibt leer (Seite bleibt weiß...).
Geladen sind die EXT css_styled_content und automaketemplate.
Frage: Hat sich etwas grundlegendes geändert ?

Hier mal mein Templatecode:

------------------------------------------------------------------------------------------------------
###
### Configuring the auto-parser for the main template ###
###
plugin.tx_automaketemplate_pi1 {
# read the template file
content = FILE
content.file = fileadmin/template/main/vorlage.html
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 this value ###
relPathPrefix = fileadmin/template/main/
}

###
### 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> tag
workOnSubpart = DOCUMENT_BODY
# Substitude the ###IMG_LEFT### subpart with a picture
subparts.img_left = IMAGE
subparts.img_left.file = fileadmin/template/main/images/InMotionLogo.gif
# copying the clickmenu
#subparts.nav_stat < temp.nav_stat
#...
}

### 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> tag
workOnSubpart = DOCUMENT_HEADER
}

### Default Page object ###
page = PAGE
page.typeNum = 0
#copying the content from template for <body>-section
page.stylesheet = fileadmin/template/main/res/stylesheet.css
page.10 < temp.mainTemplate
#copying the content from template for <head>-section
page.headerData.10 < temp.headTemplate
------------------------------------------------------------------------------------------------------

Grüsse Frank

w@ ·

Hallo Frank

Schlage mich gerade mit demselben Problem herum....

Hast du da schon was rausgefunden.....???? :o

Wäre froh um jedwelche Tipps.....

Merci und gruss Peter

<-- Nachtrag -->
PS: der Header Teil schein bei mir richtig aufgelöst zu werden
lediglich der Body Teil macht probleme.....
<-- Nachtrag ende -->

Frank.​V.​ ·

Hallo Peter,

tja, die Antwort wird Dir nicht gefallen:
Nachdem ich mit verschiedenen Leuten gesprochen habe, wurde mir (auch von mittwald medien) geraten, auf die Extension Autotemplateparser zu verzichten.
Habe nun alles auf "normale" Templates umgestellt -
-----------------
...
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-Parser to the template cObject
template = FILE
template.file = fileadmin/template/vorlage.html
# Select only the content between the <body> tag
workOnSubpart = DOCUMENT_BODY
#workOnSubpart = IMG_LEFT
# Substitude the ###IMG_LEFT### mark with a picture
marks{
IMG_LEFT = IMAGE
IMG_LEFT.file = fileadmin/template/images/banner01.jpg
...
-----------------
läuft alles

Grüsse Frank

w@ ·

Hallo Frank

...kein Problem...
Arbeiten wir halt weiterhin wie gewohnt....
wäre halt mal ne nette Abwechslung gewesen.

Hast du eigentlich auch ein Feedback bekommen, wo
denn nun das eigentliche Problem liegt?
bzw. ob eine Verbesserung in Aussicht ist.....?

Vielen Dank
Gruss Peter

Frank.​V.​ ·

Hast du eigentlich auch ein Feedback bekommen, wo
denn nun das eigentliche Problem liegt?
bzw. ob eine Verbesserung in Aussicht ist.....?

Ne, das ist leider die Kehrseite an solchen Systemen wie Typo...
Aber eigentlich ist die Extension ja nicht wirklich wichtig - dumm nur, das in div. Manuals die Beispiele damit gemacht wurden