[FEATURE] Add categorization into the Core
A common use case in every advanced website is to be able to categorize records. Besides that, there is the need to share categories across records. So far, each extension has to bring its own category implementation which is not an ideal situation. To fill the gap, we would like to introduce a new category record type along with an API where extension developers could register their own tables to be categorized. The relations will be stored within "mm" tables as a less time consuming approach. This patch provides: * SQL definition for "sys_category" and "sys_category_mm" with their TCA * a registration mechanism where third party extension can have their SQL fields + TCA generated on the fly. This is done by using the Extension Manager method: t3lib_extMgm::makeCategorizable( $extensionKey, $tableName, $fieldName = 'categories', $options = array() ); Change-Id: I461252b6d5f6c6c4a4eb2c1942a66250cbb95aa9 Resolves: #38711 Releases: 6.0 Reviewed-on: http://review.typo3.org/12672 Reviewed-by: Fabien Udriot Tested-by: Fabien Udriot Reviewed-by: Marcus Schwemer Tested-by: Marcus Schwemer Reviewed-by: Dominik Mathern Tested-by: Dominik Mathern Reviewed-by: Steffen Ritter Tested-by: Steffen Ritter
Showing
- t3lib/category/Registry.php 157 additions, 0 deletionst3lib/category/Registry.php
- t3lib/class.t3lib_extmgm.php 110 additions, 0 deletionst3lib/class.t3lib_extmgm.php
- t3lib/core_autoload.php 1 addition, 0 deletionst3lib/core_autoload.php
- t3lib/stddb/tables.php 36 additions, 1 deletiont3lib/stddb/tables.php
- t3lib/stddb/tables.sql 53 additions, 0 deletionst3lib/stddb/tables.sql
- t3lib/stddb/tca_sys_category.php 147 additions, 0 deletionst3lib/stddb/tca_sys_category.php
- tests/Unit/t3lib/category/RegistryTest.php 204 additions, 0 deletionstests/Unit/t3lib/category/RegistryTest.php
- tests/Unit/t3lib/class.t3lib_extmgmTest.php 53 additions, 0 deletionstests/Unit/t3lib/class.t3lib_extmgmTest.php
- typo3/sysext/em/classes/install/class.tx_em_install.php 4 additions, 0 deletionstypo3/sysext/em/classes/install/class.tx_em_install.php
- typo3/sysext/install/mod/class.tx_install.php 9 additions, 1 deletiontypo3/sysext/install/mod/class.tx_install.php
- typo3/sysext/lang/locallang_tca.xlf 24 additions, 0 deletionstypo3/sysext/lang/locallang_tca.xlf
- typo3/sysext/t3skin/images/icons/mimetypes/x-sys_category.png 0 additions, 0 deletions...3/sysext/t3skin/images/icons/mimetypes/x-sys_category.png
- typo3/sysext/t3skin/images/sprites/t3skin.png 0 additions, 0 deletionstypo3/sysext/t3skin/images/sprites/t3skin.png
- typo3/sysext/t3skin/stylesheets/sprites/t3skin.css 14 additions, 9 deletionstypo3/sysext/t3skin/stylesheets/sprites/t3skin.css
Please register or sign in to comment