[Typo3] Template Auto-parser

Pagina: 1
Acties:

  • Brabrabra
  • Registratie: Januari 2002
  • Laatst online: 21-08 14:52

Brabrabra

Chaoss ahv

Topicstarter
Ik ben deze week net begonnen met Typo3 en ik volg dit document: Training voor Ontwikkelaars (pdf bestand)

Nu heb ik Template Auto-parser geïnstalleerd, maar ik zie helemaal niet dat er iets veranderd is aan mijn pagina's. In de pdf hebben ze het over Configuratie van de auto-parser, maar ik heb geen idee waar dat staat en ik ben al een uur aan het zoeken.

Kan iemand mij helpen?

Supergrover heeft een vogeltje gered. Dat vogeltje zat heel hoog in een boom en durfde niet naar beneden te klimmen!


  • RM-rf
  • Registratie: September 2000
  • Laatst online: 23:40

RM-rf

1 2 3 4 5 7 6 8 9

uit http://typo3.org/document...ect/The_Template_Auto_pa/
Configuring the Template Auto-parser
As with any extension for which we want to know anything we should consult the manual for the extension on typo3.org. [url=http://typo3.org/doc.0.html?&tx_extrepmgm_pi1[extUid]=154&tx_extrepmgm_pi1[tocEl]=501&cHash=2bbdf1c6ca]Click this link and you will see the table with properties for the cObject.[/url]

To make it very clear to you what the Template Auto-parser does I'll simply insert the output from the plugin as the only content on the page and further I will configure the PAGE object "page" to not output the usual header and footer content.

This is the Setup field content of the template record:

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
# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/template_1.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

Save template and hit the frontend. You should see exactly what the fileadmin/template/main/template_1.html would look like by itself:
Oftewel, je moet in de template voor jouw site, de automaketemplate ook activeren:
je kunt dat controleren in de Object Browser

Intelligente mensen zoeken in tijden van crisis naar oplossingen, Idioten zoeken dan schuldigen