Bug #51921
closedOnly 1 category field per table possible
100%
Description
Since the CategoryRegistry was refactored between 6.0 and 6.1 it's not possible anymore to have more than one category field per table.
CategoryRegistry->add() does:
$this->registry[$extensionKey][$tableName] = array ( 'fieldName' => $fieldName, 'options' => $options, );
So every call overwrites the data of previous calls.
Example:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable('myext', 'tx_myext_domain_model_event', 'categories1', array( 'fieldConfiguration' => array( 'foreign_table_where' => ' AND sys_category.pid = ' . 1 . ' ORDER BY sys_category.title ASC', 'MM_match_fields' => array( 'tablenames' => 'tx_myext_domain_model_event', 'field_name' => 'categories1' ), ), )); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable('myext', 'tx_myext_domain_model_event', 'categories2', array( 'fieldConfiguration' => array( 'foreign_table_where' => ' AND sys_category.pid = ' . 2 . ' ORDER BY sys_category.title ASC', 'MM_match_fields' => array( 'tablenames' => 'tx_myext_domain_model_event', 'field_name' => 'categories2' ), ), ));
There should be 2 category fields showing categories from two different storage folders, but only 'categories2' will work.
Code example: https://gist.github.com/smichaelsen/6534198
Updated by Gerrit Code Review about 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 7 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 8 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 9 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 10 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 11 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 12 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 13 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 14 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 15 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 16 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 17 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 18 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Gerrit Code Review about 11 years ago
Patch set 19 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23772
Updated by Anonymous about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1461ad2f6cb3a34e47e7adc25bbf5c6c8a85ff09.