[TYPO3-dev] Single template instead of template fragments
Tapio Markula
tapio.markula at xetpoint.fi
Wed Sep 19 11:34:45 CEST 2007
Hi
I try to add possibility to use templates in the frontend editing mode
'Forms on page'.
I defined TS config for TS templates in order to define templates.
see code fragment:
if($table=='tt_content' &&
($conf['formsOnPage.'][$CType.'.'][$listType.'.']['fieldTemplate.'][$field]
||
$conf['formsOnPage.'][$CType.'.'][$listType.'.']['fieldTemplate.'][$field.'.']['file']))
{
if($conf['formsOnPage.'][$CType.'.'][$listType.'.']['fieldTemplate.'][$field.'.']['file']
&& is_file(PATH_site
.$conf['formsOnPage.'][$CType.'.'][$listType.'.']['fieldTemplate.'][$field.'.']['file']))
$altTemplate =
t3lib_div::getURL(t3lib_div::getIndpEnv('TYPO3_SITE_URL')
.$conf['formsOnPage.'][$CType.'.'][$listType.'.']['fieldTemplate.'][$field.'.']['file']);
else $altTemplate =
$conf['formsOnPage.'][$CType.'.'][$listType.'.']['fieldTemplate.'][$field];
Templates are fragments - three separate template fragments. I don't
know how to define instead of fragments
single template, which could contain template fragments.
More information about the TYPO3-dev
mailing list