-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Order of categories in article view #61
Comments
At the moment the sorting is done alphabetically from A to Z. I will consider changing it in the next major release. |
Hello, is there any news about this topic? I would appreciate a lot having this logic too. In my case, I would like to output only the first category in some templates. But with the current solution, it isn't possible. Maybe it would be nice to have the sorting on the first level (news settings) like in this extension - https://github.com/marebe1602/mae_event_categories. What do you think? |
I will likely be unable to provide the feature this year. However, if you are willing to sponsor it or provide a PR – you're very much welcome 🙂 |
How much will it cost? |
Please contact me at [email protected] 🙂 |
First of all, thanks for the usefulle and great extension! I appreciate it a lot.
Now my questions:
I display the categories for a new entry ussing following code in the template:
echo implode(', ', $this->categoriesList);
This gives me the right categories, but sometimes in the wrong order.
This is my category tree:
-- level01_1
-- level01_2
-- level01_3
-- level01_4
-- level02_1
-- level02_2
-- level02_3
-- level03_1
-- level03_2
-- level03_3
Now when I assign "level01_1", "level02_1" and "level03_1" the oder is correct. It will show "level01_1, level02_1, level03_1" for the news entry.
But when I assign "level01_4", "level02_2" and "level03_3" the displayd order is wrong. It will show "level02_2, level03_3, level01_4", but I would expect "level01_4, level02_2, level03_3".
So I come to the conclusion, that the oder of the second level is used for odering and not the parent level.
The text was updated successfully, but these errors were encountered: