[Typo3-dev] TS dynamic path to html template
Gernot Brandl
gb_NOSPAM_ at sanssouci.at
Tue Dec 20 12:04:14 CET 2005
Hi,
this is a newbe question:)
In a template i try to fill a subpart (###DYN_CONTENT###) with the content
of a html template.
The actual tamplate file i want to include depends on the value of a column
in the pages table (this column is provided by an extension i wrote. The
user selects which template file he wants to use while creating a new page).
I declared a TS Constant which holds the path-prefix to these selectable
templatefiles:
templatePathPrefix = fileadmin/content_templates/content/
as described above the filename of the template is
'field:tx_sstplselector_content_tpl'
so the actual path to the template file is generated by concatenating
templatePathPrefix with field:tx_sstplselector_content_tpl'.
How can i do this within TS??
Thanks in advance
Gernot
My Code so far:
content.dynContent = TEMPLATE
content.dynContent {
template = FILE
# HERE IS THE PROBLEM
template.file = {$templatePathPrefix}field:tx_sstplselector_content_tpl
workOnSubpart = DOCUMENT_BODY
}
content.mainTemplate.subparts.DYN_CONTENT < content.dynContent
More information about the TYPO3-dev
mailing list