luya-module-cms icon indicating copy to clipboard operation
luya-module-cms copied to clipboard

Unexpected container order

Open hbugdoll opened this issue 2 years ago • 4 comments

What steps will reproduce the problem?

Add multiple containers in the CMS.

What is the expected result?

Containers are sorted like in CMS Settings > Containers and thus by ID.

What do you get instead?

Containers are sorted by name in alphabetical order.

Additional infos

Q A
LUYA Version current

@nadar If you agree I can provide a PR.

hbugdoll avatar Apr 14 '22 14:04 hbugdoll

In an upcoming release we could add a migration with a sorting field. Maybe we could also use the alias to sort as they are not visible in the UI. So things like 0default 1abc would be possible? What do you think?

nadar avatar Apr 18 '22 08:04 nadar

@rolandschaub recommendations?

nadar avatar Apr 18 '22 08:04 nadar

In an upcoming release we could add a migration with a sorting field. Maybe we could also use the alias to sort as they are not visible in the UI. So things like 0default 1abc would be possible? What do you think?

Using the alias may be a workaround (but we heavily use "fixed" container aliases). A new sorting ID would be the preferred way and consistent to menu item's sort_index.

hbugdoll avatar Apr 25 '22 15:04 hbugdoll

A new migration would require us to release a new major version (5.0). So i will assign this milestone :+1:

nadar avatar Apr 26 '22 13:04 nadar