Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

category sorting #706

Closed
topsnet-holgerd opened this issue Jul 18, 2018 · 2 comments
Closed

category sorting #706

topsnet-holgerd opened this issue Jul 18, 2018 · 2 comments

Comments

@topsnet-holgerd
Copy link

Dear news experts,

As I replied to bhaniko (see four issues below), I like to sort the categories by title and not by id (in the backend plugin as well as in a frontend dropdown list).

For the list view of all categories (BE) the modification of ext/news/Configuration/TCA/Overrides/sys_category.php helped:
$GLOBALS['TCA']['sys_category']['ctrl']['sortby'] = null; $GLOBALS['TCA']['sys_category']['ctrl']['default_sortby'] = 'ORDER BY title';

But this doesn't affect the sorting in the plugin:
image
Thanks for any proposal.

@georgringer
Copy link
Owner

Remove the tree rendering if you don't need the tree and then the order will work

@topsnet-holgerd
Copy link
Author

topsnet-holgerd commented Jul 20, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants