[Typo3-dev] Updating sysext/cms/ext_tables.php and sysext/cms/tbl_tt_content.php
Ernesto Baschny [cron IT]
ernst at cron-it.de
Mon Sep 12 15:03:24 CEST 2005
Markus Wagner schrieb am 12.09.2005 14:48:
> 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';
...
Cheers,
Ernesto
More information about the TYPO3-dev
mailing list