How to order Categories?


(Passante) #1

I Started to reorder Categories, but I discovered that the old drag and drop feature as disappeared.
Now Ordering categories is extremely difficult and not frendly at all.
How I’m supposed to do?


#2

You can change the “position” in the settings

It’s more mobile friendly in that way


(Passante) #3

I don’t agree…
This is like going back to ten years ordering way :worried:


(Kane York) #4

The drag&drop was removed because it was broken and would often screw up other stuff along with it, and because you had to drag them an insane distance. A new dialog for just ordering the categories is in the works, but it’s not ready yet.


(Nick Pfisterer) #5

Has this dialogue been implemented yet? I found an admin setting called fixed category positions under Basic Setup, but it doesn’t appear to do anything.


(Felix Freiberger) #6

After enabling this setting, edit your categories and enter a position under their settings tab.

These numbers behave a bit weird, but with a bit of experimentation you can order the categories as you want. I highly recommend having /categories in a separate tab and refreshing after every change to see what’s going on.


(Nick Pfisterer) #7

Thank you, @fefrei! I may never have discovered that on my own. Not exactly an intuitive interface. :sadpanda:


(Felix Freiberger) #8

To expand on the “weird” part: These numbers may change on their own. They appear to always be sequential, you can’t set them to arbitrary numbers (I wanted to use 100, 200, 210 for a subcategory etc.), you always have to look at the current state to choose the appropriate number to choose. Either that, or I was hallucinating when I did it on my install :wink:

I’d really love to see that feature improve :panda_face:


(Kane York) #9

I’ll be fixing this up Monday :wink:

https://github.com/discourse/discourse/pull/3703


Cannot change category position
(John ) #10

How does it work with Subcategories? The presentation in the reorder dialogue is completely unrelated from the actual order and subcategory arrangement.

It looks like they might be alphabetical by original name.


(Kane York) #11
  1. The position will be used to order these:

    Also, if you scroll down, you should see that it’s not alphabetical.

  2. You should wait to use the dialog until you get Category reordering fixes by riking · Pull Request #3748 · discourse/discourse · GitHub deployed


(John ) #12

OK… but what is the risk if I were to do so? :stuck_out_tongue:

To order which? There is no clear relationship between the numbering pattern in the “Reorder Categories” modal, and the actual presentation of our categories.

Is it that the distinction between categories and subcategories is not represented here, and categories are just ordered from low to high position wherever the admin has chosen to place them? Now that I look at it, that appears to be the case. Knowing that “Coinbase Developers” is a top-level category, then looking at it’s subcategories, I can see that they appear in order as numbered.

Without having insight into the architecture behind this scheme, this UI doesn’t feel intuitive to me. It would seem more natural to have top level categories be integers, and their subcategories as decimals, ie.

  1. Coinbase support
    1.1 Mobile Apps
    1.2 Buys and Sells
    1.3 Bitcoin transactions
  2. Coinbase Developers
    2.1 Developer announcements

But short of that, some in app guidance (or a link to a post here), about the numbering scheme would be helpful.


(John ) #13

I can’t see the reorder categories button at all now:

This is in our staging instance. I haven’t built it in production yet.


(Sam Saffron) #14

You have to enable fixed category positions in site settings