Cannot register contexts before extension is processed
If one registers a context trough
Tx_Contexts_Api_Configuration::registerContextType() one must make sure that the contexts extension is loaded first, otherwise the registration fails and the context is not available for selection in the end.
This is due to the fact that the TCA of a table is only available if it is defined by its
ext_tables.php. If you try to access it before, the table configuration is
This can be avoided by storing the registered context types locally first and exposing the required TCA select item and FlexForm data on demand.
I'll put up a pull request for this soon.
#1 Updated by Mathias Brodala almost 6 years ago
- % Done changed from 0 to 50
The suggested way is hard to tackle due to the quite different setup of TCA in TYPO3 CMS 4.5 and 6.2.
I have opted for a simpler solution by setting a "top" priority for this extension: