Project

General

Profile

Actions

Feature #65228

open

Simple way to read sys_category

Added by Urs Braem over 9 years ago. Updated 28 days ago.

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 #1

Updated by Stephan Großberndt over 9 years ago

  • Target version changed from 7.0 to 7.2 (Frontend)
Actions #2

Updated by Benni Mack about 9 years ago

  • Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Actions #3

Updated by Susanne Moog almost 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #4

Updated by Benni Mack almost 9 years ago

  • Target version changed from 7.5 to 8 LTS
Actions #5

Updated by taywa gmbh almost 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/ ;-)

Actions #6

Updated by Rafal Brzeski almost 8 years ago

Hello, please give a chance to this feature for 8 LTS

Actions #7

Updated by Riccardo De Contardi over 7 years ago

  • Target version changed from 8 LTS to 9.0
Actions #8

Updated by Susanne Moog over 6 years ago

  • Target version deleted (9.0)
Actions #9

Updated by Benni Mack about 1 month ago

  • Category changed from TypoScript to Categorization API
Actions #10

Updated by Georg Ringer 28 days ago

  • Complexity set to easy
  • Sprint Focus set to On Location Sprint
Actions #11

Updated by Georg Ringer 28 days ago

I suggest adding a dedicated dataprocessor for that

Actions

Also available in: Atom PDF