cms icon indicating copy to clipboard operation
cms copied to clipboard

[5.x]: Sort icon is missing for ordering

Open FrDH opened this issue 1 year ago • 3 comments

What happened?

Description

For any overview that can be ordered, the icons that should indicate selected ordering isn't showing. Image

Also, it would be very usefull if a page load would not reset the selected ordering.

Steps to reproduce

  1. Go to the CP > settings > entry types
  2. Do not notice the entry types can be ordered because of the missing icon
  3. Order the entry types by clicking on the "handle" table heading
  4. refresh the page

Expected behavior

Actual behavior

Craft CMS version

5

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

FrDH avatar Oct 16 '24 11:10 FrDH

screenshot of the missing icon: Image

FrDH avatar Oct 16 '24 13:10 FrDH

Hi, thanks for reporting. I raised a PR to align the styles of those headers with the element index tables and to show the relevant arrow icon when the column is sorted.

A couple of things to note:

  • The tables, like the Entry Types table, don’t store the selected sort options, so when you reload, the order goes back to the defaults
  • The screenshot you shared looks to be from an Entries index page for a structure? Structures are ordered by the custom order of the entries in it, and they support drag and drop to reorder (that’s why you can see the diamond icon to the left of the “Homepage”). You can switch to the regular table view, and then you’ll be able to sort by various headings (icons above the table, to the right of the search input).

i-just avatar Oct 16 '24 15:10 i-just

Thank you foryour reply.

The screenshot was indeed of an Entries index page, but the same issue applies to (for example) cp/settings/entry-types and cp/settings/fields. Both tables can be ordered by clicking the table heading but do not show the corresponding sort-icon.

One last note, is there a reason the table in cp/settings/sections can't be sorted (we don't use "general", "categories" or "tags" so I don't know about those)?

FrDH avatar Oct 18 '24 07:10 FrDH

One last note, is there a reason the table in cp/settings/sections can't be sorted

Thanks for the suggestion! We’re making the table on the sections index page sortable in 5.5.

i-just avatar Oct 22 '24 08:10 i-just

Craft 4.12.8 and 5.4.9 are out with the updated table header styling to reveal when an admin table column is being sorted on.

brandonkelly avatar Oct 22 '24 19:10 brandonkelly

Craft 5.5.0 is out with the ability to sort sections in the Sections index page :tada: (#15936)

brandonkelly avatar Nov 12 '24 17:11 brandonkelly