[TYPO3-core] Problem with multiple categories per table

François Suter fsu-lists at cobweb.ch
Sun Sep 22 21:23:07 CEST 2013


Hi all,

A recently merged patch [1] allows to have multiple categories field per 
table. While this makes perfect sense, the patch forgot to adapt the 
\TYPO3\CMS\Core\Category\Collection\CategoryCollection class 
accordingly. Indeed the getCollectedRecords() still bases itself only on 
the "tablenames" field of the MM table, whereas the "fieldname" field 
now also needs to be taken into account.

In turn this has an impact on the newly added categories-based page menu 
[2] and the pending categories-based tt_content menu [3] features. To 
get these menus working properly, an additional selector must be added 
which lists the possible categories field. To make this smart, this 
would mean dynamically populating a selector with the appropriate field 
using the data from the category registry. The information is there, we 
just need to add to \TYPO3\CMS\Core\Category\CategoryRegistry a method 
returning all categories fields for a given table.

Does that sound good?

Cheers

-- 

Francois Suter

Work: Cobweb Development Sarl - http://www.cobweb.ch

TYPO3: Help the project! - http://typo3.org/contribute/

Appreciate my work? Support me -
http://www.monpetitcoin.com/en/francois/support-me/

[1] https://review.typo3.org/#/c/23772/
[2] https://review.typo3.org/#/c/23184/3
[3] https://review.typo3.org/#/c/23905/


More information about the TYPO3-team-core mailing list