Issue
- The order of Structures when creating Web Content seems to be random. The structures are not sorted alphabetically or by modification date.
Environment
- Liferay DXP 2024.Q2
Resolution
Web Content Display widget
- Go to Control Panel > Instance Settings > Content and Data > Web Content > Web Content Display.
- Enable the Sort Structures by Name checkbox.
This sorts structures alphabetically in ascending order. Otherwise, they are sorted by ID.
As explained in the setting description, enabling this might impact performance depending on the number of structures, as sorting happens in memory.
Web Content Administration
You can select your desired order the "More" dialog that appears once you have several structures. This order is persisted.