Custom sources and sorting #12002
-
Custom sources are sorted by dateCreated asc by default. It would be great if they would either sort according to the general default of Craft postDate desc or if you could specify a default sorting directly in the source definition. As a further option, it would then be conceivable that a different sorting could also be specified for all other, i.e. native sources. Background: In companies there are sometimes policies that require the clearing of the LocalStorage after closing the browser. This deletes the personal sorting configuration of Craft every time and the employees have to set it up again every morning. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I just had the same idea. In 4.3 it's going to be possible to use relative dates when applying element conditions, making it possible to have sources set up to do things such as:
Most of the time you are going to want that source to default to a particular order e.g dateUpdated, dateCreated and so on. If this was made possible I'm not sure what should happen if a user were to change the sorting like so:
Should it revert to Date Created or the override, Title? For the two uses cases above reverting to the default makes more sense to me as the override was probably only temporary, but this would be different to the current order by behaviour which remembers your last selection. I thinking something like this |
Beta Was this translation helpful? Give feedback.
-
Added a new “Default Sort” setting for Craft 4.3 🎉 (#12057) It’s available for both native and custom element sources. |
Beta Was this translation helpful? Give feedback.
Added a new “Default Sort” setting for Craft 4.3 🎉 (#12057)
It’s available for both native and custom element sources.