Zum Inhalt springen

Template-Marker-Problem

Erstellt am 30. April 2004 · 3 Antworten · letzte Antwort am 1. Mai 2004

Tags: Frage

KillaBug ·

Hallo!

Ich bin am verzweifeln.

Ich hab ein HTML-Template, bestehend aus HTML, css & images in typo3 mit Hilfe des automaketemplate-extension erfolgreich eingefügt.

http://home.pages.at/jokey/test111.jpg

jetzt will ich aber nur einen auf der seite einen text haben, der von t3 editiert werden kann.

Hab also in die Tabelle (html-code) den marker ###INHALT### gesetzt.

setup:

Configuring the Auto-Parser:

plugin.tx_automaketemplate_pi1 {

    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/entwurf.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

    TD.all = 1

  }

 

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

}

 

 

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.config.disableAllHeaderCode=1

 
page.10 =< plugin.tx_automaketemplate_pi1

marks.INHALT = CONTENT 
marks.INHALT < styles.content.get

statics:

content(default)

an der "markerstelle" wird aber nur der marker (###INHALT###) ausgegeben und nicht der eigentliche text

gotoralf ·

Probier mal

page.10.workOnSubpart = VORLAGE

im template und

<body>
<!-- ###VORLAGE### begin -->
...
<table><tr><td>###INHALT###</td></tr></table>
...
<!-- ###VORLAGE### end-->
</body>

in der Designvorlage (entwurf.html).

Gruß

Ralf