[TYPO3-dev] Override allow ed extension list of media element

Bjoern Pedersen bjoern.pedersen at frm2.tum.de
Fri Feb 18 09:00:52 CET 2011


Am 17.02.2011 17:54, schrieb Steffen Kamper:
> Hi,
> 
> Am 17.02.2011 16:41, schrieb Bjoern Pedersen:
>> Hi,
>>
>> as the medai element has a flexform for it's BE layout
>> ( typo3/sysext/cms/flexform_media.xml ),
>> is there a way to define the allowed extensions without patching this
>> file?
>>
>> Is setting
>> $TCA['tt_content']['pi_flexform']['config']['ds'][',media']=file_get_contents(<some
>>
>> xml file>);
>>
> 
> this is one possibility, to point to an own xml for the flexform.
> 
> The other way is to override single fields with typoscript.
> This is new and so not well known, but you can do the following as well:
> 
> http://wiki.typo3.org/Documentation_changes_in_4.4_and_4.5#16334:_Make_FlexForms_editable_via_TSConfig_and_group_access_lists_.5Bclosed_to_Steffen_Kamper.5D.5B4.5.5D
> 
> 
> vg Steffen

Yes, I actually thougt of something like that.
[tablename].[field].[dataStructKey].[flexSheet].[flexField].config.[key]


But I am not shure wether i can get at
the key ['wizards']['links']['params']['allowedExtensions'],
as wizards is not in the list of possible keys in the docs.
So that would be:
$TCEFORM['tt_content']['pi_flexform']['media']['sDef']['mmFile']['wizards']['links']['params']['allowedExtensions']='xxx'

I will give it a try.


Björn




More information about the TYPO3-dev mailing list