Desarrollo Web Posted August 16, 2022 Share Posted August 16, 2022 Good afternoon, we have seen that the models can be sorted by many variables when the page is loaded (date created and last updated among them). But we want the defailt sorting to be alphabetical so we've set that up perfectly. However, we would like to have a button for users to be able to filter by latest added ....and we don't see that option. How can we do this? Quote Link to comment Share on other sites More sharing options...
Tech Support Posted August 17, 2022 Share Posted August 17, 2022 The default sorting for models can be configured in sort_by parameters of these blocks: What is a "filter by latest added"? Quote Link to comment Share on other sites More sharing options...
Desarrollo Web Posted August 18, 2022 Author Share Posted August 18, 2022 Yep...I know... As I said we have the defualt sorting as we want (alphabetical). But we want to add a sorting by date added in the soring buttons. See attached where the arrows point to. Quote Link to comment Share on other sites More sharing options...
Tech Support Posted August 18, 2022 Share Posted August 18, 2022 I see, I was confused by using "filtering" term rather than "sorting". If you want to adjust list of model sortings you need to work with Website UI -> Texts with these text items: models.sortings_videos = array(title, avg_videos_popularity, avg_videos_rating, total_videos) models.sortings_albums = array(title, avg_albums_popularity, avg_albums_rating, total_albums) Sorting ID for added date sorting would be added_date. Then you will also need to add sorting text and list titles for models sorted by added date like this: models.list_sorting.added_date = Added date models.list_title_by_section_sorting.added_date = New '%1%'-Models models.list_title_by_sorting.added_date = New Models You can find similar texts for other model sortings, could be easier to add this in Website UI -> Language files instead. 1 Quote Link to comment Share on other sites More sharing options...
Desarrollo Web Posted August 30, 2022 Author Share Posted August 30, 2022 Excellente solution, as always. It worked and now I understand the way it's done for the rest. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.