Jump to content

Button to sort models by date

Desarrollo Web

Recommended Posts

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?


Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...