How to order Categories?

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?

1 Like

You can change the “position” in the settings

It’s more mobile friendly in that way

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

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.

5 Likes

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.

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.

4 Likes

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

1 Like

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:

2 Likes

I’ll be fixing this up Monday :wink:

5 Likes

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.

  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

1 Like

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.

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.

You have to enable fixed category positions in site settings

7 Likes

Maybe it should be a default setting… Not that intuitive that this is a setting away from categories controlling, I think…

This topic was automatically closed after 3245 days. New replies are no longer allowed.