[FEATURE] Allow multiple category fields per table 72/23772/20
authorSebastian Michaelsen <sebastian.michaelsen@t3seo.de>
Wed, 11 Sep 2013 15:07:13 +0000 (17:07 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Tue, 17 Sep 2013 12:48:48 +0000 (14:48 +0200)
commit1461ad2f6cb3a34e47e7adc25bbf5c6c8a85ff09
tree2a34ecfb8111ee978464389b500a74f5e3a3acf4
parent87c133d44b7bd56456a0225254ae62dd2020ef36
[FEATURE] Allow multiple category fields per table

It is only possible to do one makeCategorizable() call per
table, because if you do more the later calls would overwrite the
previous category field declaration. That's because of the way
the registry stores the category fields - it can only store one
field per table. This change improves that and allow multiple
fields pers table.

Additionally, a custom label can be set in the options array
for each category field.

Resolves: #51921
Releases: 6.2
Change-Id: I96d1235176109395339e9841564edadc0c71147d
Reviewed-on: https://review.typo3.org/23772
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Markus Klein
Tested-by: Markus Klein
NEWS.txt
typo3/sysext/core/Classes/Category/CategoryRegistry.php
typo3/sysext/core/Tests/Unit/Category/CategoryRegistryTest.php
typo3/sysext/core/ext_tables.sql