Feature #65228
openSimple way to read sys_category
0%
Description
Until now, it's not simple to get sys_category entries for items, like a page.
There are several examples around on how to do it by TS, the one that works for me is on http://stackoverflow.com/a/28559654/160968, others are on http://www.typo3-probleme.de/2014/04/07/typo3-6-x-kategorien-auslesen-und-verwenden/
I think it should be possible to use sys_category directly via getText,
for example:
temp.page_cats = TEXT temp.page_cats.data = {page:categories}
Returning a comma separated list.
This would facilitate reusing of the system-wide categories in many places.
To stay with my example, with tx_news, you could then do
settings.useStdWrap = categories settings.categories.override.cObject.data = {page:categories} settings.categoryConjunction = or
and display all news that share the page's categories - very simple handling for editors!
A recursive "slide" option might be desirable as well.
What do you think?
Updated by Stephan Großberndt over 9 years ago
- Target version changed from 7.0 to 7.2 (Frontend)
Updated by Benni Mack over 9 years ago
- Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Benni Mack about 9 years ago
- Target version changed from 7.5 to 8 LTS
Updated by taywa gmbh over 8 years ago
Please make categories accessible for pages, content and resources. As they are now implemented they are quite useless. Retrieving them should also accept commonly needed parameters, just like https://developer.wordpress.org/reference/functions/wp_list_categories/ ;-)
Updated by Rafal Brzeski about 8 years ago
Hello, please give a chance to this feature for 8 LTS
Updated by Riccardo De Contardi over 7 years ago
- Target version changed from 8 LTS to 9.0
Updated by Benni Mack 5 months ago
- Category changed from TypoScript to Categorization API
Updated by Georg Ringer 5 months ago
- Complexity set to easy
- Sprint Focus set to On Location Sprint
Updated by Georg Ringer 5 months ago
I suggest adding a dedicated dataprocessor for that