[TYPO3] Slider in $TCA

Tapio Markula tapio.markula at xetpoint.fi
Mon Jun 25 20:03:40 CEST 2007


Dmitry Dulepov kirjoitti:
> Lukas Mattsson wrote:
>> Is it possible to have slider controls ala 
>> http://webfx.eae.net/dhtml/slider/slider.html in TCA backend forms by 
>> installing some extension or library?
> 
> Yes but you have to implement it through user-type control. It will 
> require additional develpment.
> 

apparently wizard-type control would work?

here an example from date2cal

	

// define wizard
$tmpCalWizard = array(
	'type' => 'userFunc',
	'userFunc' => 
'EXT:date2cal/class.tx_date2cal_wizard.php:tx_date2cal_wizard->renderWizard',
);

You can't set that for every input field
$GLOBALS['TCA'][$table]['columns']

1) set for defined fields
2) try to find some generic conditions

example
foreach($GLOBALS['TCA'] as $table => $tConf) {
	t3lib_div::loadTCA($table);
	foreach($GLOBALS['TCA'][$table]['columns'] as $field => $fConf)
		if(($fConf['config']['type'] == 'input') && 
(t3lib_div::inList($fConf['config']['eval'], 'date') || 
t3lib_div::inList($fConf['config']['eval'], 'datetime')))
		 
$GLOBALS['TCA'][$table]['columns'][$field]['config']['wizards']['calendar'] 
= $tmpCalWizard;
}

I don't figure any common condition, because max is maximum quantity of 
characters, so just define exact fields, where you want to use it.


More information about the TYPO3-english mailing list