/ Published in: TYPO3

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# Configuring the Auto-Parser for main template: # Read the template file: content.file = fileadmin/templates/main-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 SPAN.all = 1 } # Prefix all relative paths with this value: relPathPrefix = fileadmin/templates/ } # Main TEMPLATE cObject for the BODY temp.mainTemplate { # Feeding the content from the Auto-parser to the TEMPLATE cObject: # Select only the content between the <body>-tags workOnSubpart = DOCUMENT_BODY # Substitute the ###theme### subpart with a theme image: subparts.theme < temp.theme # Substitute the ###topmenu### subpart with dynamic menu: subparts.topmenu < temp.menu # Substitute the ###content### subpart subparts.content < styles.content.get # Substitute the ###language### subpart # Substitute the ###search### subpart with the search form: subparts.search < temp.search # Substitute the ###news### subpart with the news teasers: subparts.news < styles.content.getRight } # Main TEMPLATE cObject for the HEAD temp.headTemplate { # Feeding the content from the Auto-parser to the TEMPLATE cObject: # Select only the content between the <head>-tags workOnSubpart = DOCUMENT_HEADER } # Default PAGE object: 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
Comments
