[TYPO3] Slider in $TCA
Tapio Markula
tapio.markula at xetpoint.fi
Tue Jun 26 18:16:48 CEST 2007
Stefan Galinski
> A common condition could be:
>
> 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'], 'int' ||
> is_array($fConf['config']['range']))
>
> That means simply all integers with some ranges enabled.
endeed imo that is too generic.
if($fConf['config']['type'] == 'input' &&
is_array($fConf['config']['range']['upper'])
The upper value must be defined - elsewhere it is impossible to set
reasonable range for the slider. Or should the author of the plugin sets
the upper value from his own head. Then it is just lucky quess, which
might work - but many cases it is not reasonable.
Lower is not important - if not set, just '0'. If some use range, the
eval should be always int and that is not needed to test.
More information about the TYPO3-english
mailing list