[Typo3-dev] Updating sysext/cms/ext_tables.php and sysext/cms/tbl_tt_content.php

Thomas Peterson info at thomas-peterson.de
Mon Sep 12 16:21:54 CEST 2005


Hello,

>
>> I made some changes in sysext/cms/ext_tables.php (changing the behaviour
>> of the "Standard"-pagetype) and sysext/cms/tbl_tt_content.php (changing
>> the folder where the "Media"-Files are stored) and it works well for me.
>> Now the problem is that I do not have a great feeling doing such a patch
>> directly in these core-files because of concerns for future updates.
>> But I do not see any mechanism to avoid that, because x-classing is not
>> possible and I do not see where I can change those arrays on any other
>> place before they are read by the backend-modules.
>>
>> Does anybody have a better idea or did I overlook anything?
>
> Make an extention, have a ext_tables.php there and make the changes
> directly in the arrays. Just make sure you loadTCA() the table you want
> to change first, so that your changes will override the core settings:
>
> t3lib_div::loadTCA('tt_content');
> $TCA['tt_content']['columns']['media']['config']['uploadfolder'] = 
> 'blabla';
> $TCA['tt_content']['columns']['multimedia']['config']['uploadfolder'] =
> 'blabla';

Yes look at the skin-grey.

Best Regards.
Thomas Peterson 






More information about the TYPO3-dev mailing list