Sorting Categories by Name

(Keith John Hutchison) #1

How would you sort {host}/categories by name?

0 Likes

Reorder Categories behaving strangely
(Simon Cossar) #2

Are you trying to order categories on the Category page? If so, that can be done by enabling the fixed category positions Site Setting. When that setting is enabled, an option to Reorder Categories is added to the staff menu on the top-right of the category page.

If this isn’t what you’re looking for, let us know.

2 Likes

(Jay Pfaffman) #3

If you have more than 20 or so, a bit of ruby at the console can sort them all.

0 Likes

(Keith John Hutchison) #4

Do you know off hand the field that would have to be changed?

0 Likes

(Keith John Hutchison) #5

That looks cool and it looks like it would work.

It doesn’t work well with Categories with SubCategories.
Which I click on a main category to move up it doesn’t move.
Sub categories within a main category do move.

Is that a bug?

0 Likes

(Stephen) #6

It works here. Could be customisations interfering with the page.

0 Likes

(Keith John Hutchison) #7

It works here as long as the item above is a parent category. It fails when the item above is a subcategory.

Is there an official way I can add a test that shows the problem (or not) … do the UI tests use Puppeteer or something similar?

0 Likes

(Keith John Hutchison) #8

The issue I’m seeing is pretty much the same as Reorder Categories behaving strangely

0 Likes

(Keith John Hutchison) #9

I ended up doing this via SQL.

0 Likes

(system) closed #10

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

0 Likes