Actions
Bug #17415
closedDon't work automaketemplate
Start date:
2007-06-24
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
When I maked new html-based template and insert in setup code from documentation "Modern template building" the code dosen't working: don't insert content from styles.content in page. The page code in attache. The code of template setup fild above.
- Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 { # Read the template file:
content = FILE
content.file = fileadmin/template/main/index.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 = titleTD.all = 1
}- Prefix all relative paths with 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>-tags
workOnSubpart = DOCUMENT_BODY- Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1
- Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get
- Substitute the ###menu_1### subpart with dynamic menu:
}
- 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
(issue imported from #M5845)
Actions