cms icon indicating copy to clipboard operation
cms copied to clipboard

[5.x] Allow asset container order to be specified

Open ryanmitchell opened this issue 2 months ago • 13 comments

Since https://github.com/statamic/cms/pull/4947 asset containers have been ordered by title, which is mostly a good thing.

However sometimes, you have an asset container that is low priority and rarely used, but then appears first, which isnt so good. A small quality of life improvement is to let the order by specified, while still falling back to title when its not.

This PR introduces an order key to the yaml, which the CP then sorts by when outputting the list, eg order: 99

Before:

CleanShot 2024-05-23 at 13 59 23@2x

After:

CleanShot 2024-05-23 at 13 58 55@2x

ryanmitchell avatar May 23 '24 12:05 ryanmitchell