[TYPO3-core] RFC: #9348: pages table cannot be used with t3lib_div::loadTCA
Franz Holzinger
franz at fholzinger.com
Mon Sep 15 14:19:12 CEST 2008
This is a SVN patch request.
Problem:
If you are programming a backend module, then you want to load the pages
TCA using t3lib_div::loadTCA('pages'). Unfortunately this does not work,
because the pages table does not have any
$TCA['pages'][['ctrl']['dynamicConfigFile'] like all other tables have.
It wouldn't be a good way to include the file stddb/tables.php .
Solution:
Move the 'ctrl' part of $TCA['pages'] from stddb tables.php into
tbl_be.php. Add the $TCA['pages'][['ctrl']['dynamicConfigFile'] =
'T3LIB:tbl_be.php' to have the same behaviour as it is with all other
TYPO3 backend tables.
Notes:
- See topic 'Is the description of tslib_fe::includeTCA wrong?' on the
developer list.
- The $TCA['pages'] has shown to be already loaded for a backend module,
however there is still no 'ctrl' part loaded. So you must have another
way to load this.
Bugtracker references:
http://bugs.typo3.org/view.php?id=9348
Branches: trunk
- Franz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: loadTCA-pages.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080915/cb76074a/attachment-0001.txt
More information about the TYPO3-team-core
mailing list