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

Make order of categories configurable #73

Closed
cellio opened this issue May 8, 2020 · 2 comments
Closed

Make order of categories configurable #73

cellio opened this issue May 8, 2020 · 2 comments
Labels
area: html/css/js Changes to front-end code area: ruby Changes to server-side code priority: medium type: change request New feature or request

Comments

@cellio
Copy link
Member

cellio commented May 8, 2020

Currently categories are shown in the order created, but a site might want to put other things before Meta or insert other things after the site has been up for a while. It would be better if the order could be configured.

One way to do this would be to add a "priority" option to a category's configuration. Treat it like Z-index; allow gaps, so a site could set Meta to 99 and just not worry about it as it adjusts the relative priorities of its blog, sandbox, and contests (or whatever). If two categories specify the same priority, either complain (if that's easy to catch at edit time) or just fall back to some defined behavior like "oldest first". This will be an infrequent operation; it doesn't need a beautiful UI with drag-and-drop and suchlike.

@manassehkatz
Copy link

As I noted elsewhere - no UI needed to handle it. Just have the SQL query reading the category list do an order by priority, id

@ArtOfCode- ArtOfCode- added area: ruby Changes to server-side code area: html/css/js Changes to front-end code priority: medium type: change request New feature or request labels May 8, 2020
@ArtOfCode-
Copy link
Member

Completed by 7622e81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: html/css/js Changes to front-end code area: ruby Changes to server-side code priority: medium type: change request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants