[TYPO3-dev] configure allowed filetypes of group element in flexform_ds

Peter Russ peter.russ at 4many.net
Tue Nov 7 12:59:24 CET 2006


Dmitry Dulepov schrieb:
> Hi!
> 
> Steffen Müller wrote:
>> I was looking for a way to use
>> $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] inside the flexform:
>>
>> <config>
>>   <type>group</type>
>>   <internal_type>file</internal_type>
>>   <allowed>$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']</allowed>
>> </config>
>>
>> But the above example does not work.
> 
> Yes, it does not work. Why should it? xml is not PHP.
> 

You could try any bypass it utializing the language file like:

$LOCAL_LANG['default']['allowedExt']=$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'];

and in your flexform:
<allowed>LLL:EXT:extKey/pi/locallang.php:allowedExt</allowed>

Not tested. But should work.

Regs. Peter.

-- 
Fiat lux!
Docendo discimus.
_____________________________
4Many® Services
openBC: http://www.openbc.com/go/invuid/Peter_Russ




More information about the TYPO3-dev mailing list