#17415Don't work automaketemplate
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 = title
TD.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<br> workOnSubpart = DOCUMENT_BODY</body>
- Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1
subparts.content < styles.content.get
}
- 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<br> workOnSubpart = DOCUMENT_HEADER<br>}</head>
- Default PAGE object:
page = PAGE
page.typeNum = 0
- Copying the content from TEMPLATE for <body>-section:<br>page.10 < temp.mainTemplate</body>
- Copying the content from TEMPLATE for <head>-section:<br>page.headerData.10 < temp.headTemplate</head>
(issue imported from #M5845)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.