Actions
Feature #65228
openSimple way to read sys_category
Status:
New
Priority:
Should have
Assignee:
-
Category:
Categorization API
Target version:
-
Start date:
2015-02-23
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:
On Location Sprint
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?
Actions