[TYPO3-templavoila] Announcing TemplaVoila 1.4.2

Steffen Kamper info at sk-typo3.de
Thu Apr 8 00:25:57 CEST 2010


Hi Christian,

Christian Welzel schrieb:
> Am 15.03.2010 00:07, schrieb Tolleiv.Nietsch:
> 
>> * new hooks for eTypes (elements added by mapping interface)
> 
> today i tried to port tv_dam_connector to this new interface
> and got a problem: i have a "wizard" for setting slide mode and
> random mode by selectboxes. This is done by some code in
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['templavoila']['cm1']['eTypesExtraFormFields']
> and works as far as the form is involved.
> 
> But changes in this wizard do not update the generated Typoscript
> because i cannot force an update and tv only updates if i change
> the etype to something different and then back to dam-etypes.
> Is this a bug or a feature? How can i force tv to update this field?
> Or is there another way to integrate my wizard?
> 

first sry, i wanted to show you how to use, but ran out of time atm.
Right way to use is obvious lookinh to this part of code:

if 
(is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['templavoila']['eTypes'])) 
{
	$params = array (
		'eType'                            => &$eTypes['eType'],
		'defaultTypes_formFields'          => &$eTypes['defaultTypes_formFields'],
		'defaultTypes_typoscriptElements'  => 
&$eTypes['defaultTypes_typoscriptElements'],
		'defaultTypes_misc'                => &$eTypes['defaultTypes_misc']
	);
	foreach 
($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['templavoila']['eTypes'] as 
$hook) {
		t3lib_div::callUserFunction($hook, $params, $this);
}
}

Have a look to cm1/class.tx_templavoila_cm1_etypes.php::defaultEtypes() 
so you see how they are built.

vg Steffen


More information about the TYPO3-project-templavoila mailing list