[TYPO3-english] Changing templavoila fields (typoscript path) by my own extension

ArneReith liste at bitbricks.de
Thu Apr 9 15:19:07 CEST 2009


Hello everyone,

I have a problem to change a templavoila field (typoscript path) by my own
extension. I have setted the field in the ts page-setup and want to
overwrite it in my extension.

I tried to set it in the $GLOBALS['TSFE']->tmpl->setup Array, but it seems
that the page content is rendered before I can set the field. It has
absolutly no effect. 

the ts in the page-setup is:

temp.title = TEXT
temp.title.data = page:subtitle // page:title
temp.title.wrap = <h1>|</h1>

lib.main_header < temp.title

this works fine.

My attempt to set it in my extension is:

$GLOBALS['TSFE']->tmpl->setup['lib.']['main_header'] = 'TEXT';
$GLOBALS['TSFE']->tmpl->setup['lib.']['main_header.'] = array();
$GLOBALS['TSFE']->tmpl->setup['lib.']['main_header.']['value'] = 'Extension
Singleview Object';

but even if I unset the complete field:

unset($GLOBALS['TSFE']->tmpl->setup['lib.']['main_header'])

the output does not change and contains still the page:title.

can everybody give me a hint?

thank you in advance,

Arne

-- 
View this message in context: http://www.nabble.com/Changing-templavoila-fields-%28typoscript-path%29-by-my-own-extension-tp22928904p22928904.html
Sent from the TYPO3 English mailing list archive at Nabble.com.



More information about the TYPO3-english mailing list