How to change the display order of items in a collection
Why rearrange the order of the elements?
Key points • The order of CMS elements influences readability and navigation • You can sort your content manually or automatically • Good organization improves visitor experience and SEO
Changing the display order of items within a collection is essential for effectively structuring your hotel website. Whether you want to highlight certain rooms, reorganize your seasonal offers, or display your news in a logical order, dynamic sorting simplifies content management.
To begin, go to the page that displays your CMS collection. The items are usually displayed there via a Collection List. Select this block and open its settings. You will see a section dedicated to sorting, often called Sort Order.
In this section, you can choose different criteria based on the fields in your collection: date, name, price, priority, rating, or any other custom field. Select the desired field and then define the display order, for example, ascending or descending. This method is ideal for displaying rooms by rate, offers in chronological order, or upcoming events.
If you want to control the order manually, add a numeric field to your collection, such as "Order," "Priority," or "Position." This field will allow you to assign each item a number that reflects its desired position in the list. Then, in the Collection List settings, select this field as the sorting criterion.
💡 Tip: Use spaced numbers (10, 20, 30) rather than 1, 2, 3 to facilitate future reorganizations.
After configuring the sorting, preview your page to confirm that the items are displayed in the expected order. If the result does not match your settings, check that all items have a value in the field used for sorting. An empty field can disrupt the display order.
It's also possible to combine sorting and filters to obtain a more precise list. For example, you can display only current offers, sorted by date or priority. Filters and sorting work together: filters reduce the number of items, and then sorting organizes those that remain.
Finally, consider the impact of the chosen order on the user experience. A coherent and logical order facilitates navigation and highlights the most relevant content for your visitors, whether it be offers, rooms, or news.
Conclusion
Changing the display order of items in a collection is easy thanks to dynamic sorting options. By using an existing field or a custom field, you have complete control over the presentation of your hotel content.