View modes & sorting
Posted: 2016-06-08, 19:55 UTC
I added a a view mode that doesn't change the column view but changes the sort order to 'by date'.
Let's say we have a custom column view configured that has a few columns. This view is the active view. When the view mode is now activated the current custom column view is kept which is expected. The sorting remains unchanged as there is simply no 'Date' column.
So it will only work when there is actually a date column. In my opinion it shouldn't rely on the current view.
Maybe it's a better idea to provide sorting in a view mode _only_ if a corresponing 'columns view' is selected that contains the sort criteria?
Let's say we have a custom column view configured that has a few columns. This view is the active view. When the view mode is now activated the current custom column view is kept which is expected. The sorting remains unchanged as there is simply no 'Date' column.
So it will only work when there is actually a date column. In my opinion it shouldn't rely on the current view.
Maybe it's a better idea to provide sorting in a view mode _only_ if a corresponing 'columns view' is selected that contains the sort criteria?