Project

General

Profile

Actions

Feature #97846

open

TCA field type category: make categories sortable

Added by Lina Wolf almost 2 years ago. Updated almost 2 years ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-07-03
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The relation between sys_category and records is sortable, as sys_category_record_mm contains fields called sorting

However at the moment it is impossible to influence the sorting of chosen categories in when using the field type category.

When there are large amounts of categories in hierarchical structures they are also hard to choose from a list or with the record chooser using group or select fields.

The category tree already has one view where only the checked categories are shown. Now if we could use that field to change the categories sorting that would be perfect.

We often have use cases, where we only display the first / most important category or where we want to influence the sorting of the listed categories. This cannot be achieved with the category tree right now.

Actions #1

Updated by Georg Ringer almost 2 years ago

  • Status changed from New to Needs Feedback

Thanks for creating the issue! Imo this is impossible with a tree relation to solve.

I see the following solutions:

1) switch to a side by side selection and instead of rendering the items as tree change the rendering so something like this

_main 1
__ sub 1.1
-main 2

having those underscores in the value

2) use a field "important" or "main category" at the sys_category table and set it for the main records
3) use another relation field in your record to select which categories of the selected ones are important.

I suggest to close this issue if that is ok for you? feel free to contact me on slack

Actions

Also available in: Atom PDF