Reputation: 87
I'm building a site with Drupal 7.2 and Views 3.0, and 30+ useful modules. I know little about urls, arguments, PHP, SQL... The title of my question might be ambiguous, so here's the context:
For example, I've created a content type named "articles", and with Views, I've made a list of articles (or teaser), and set the url to example.com/articles
.
I added a field named "type" (list, checkbox) to this content type, now I can enter Views-> Filter Criteria, and expose the "type", and configure arguments in "Filter identifier". and now I can get urls like this: example.com/articles?type=type1
, example.com/articles?type=type2
"...
But, I also want to make the url like this: example.com/articles?type=type1&display=list&sort=top-rated
, I don't know how to set the pattern of display (list, grid..) and the pattern of sorting (hottest, latest, top-rated, most-commented...) in the urls as arguments. Are there any modules or methods that can help? Thanks everybody for help!
Upvotes: 1
Views: 1001
Reputation: 5211
I am not aware of an easy way to do this with your requirements. The first thing that comes to mind is creating separate page views for each type of sort and putting that in the path for the page view. I have also not heard of a way to set the display in the url other than having separate urls.
Upvotes: 1