Community & Support

Events system - different ways to sort / best way to achieve this

Hi, first of all I'd just like to say how excellent drupal is and I think it's brilliant that it's open source, keep up the good work.

Now, I am building a drupal website in which users can post events.

I have added the fields "start date" and "end date" as a field to the 'event' content type.

I am also using the voting api module combined with fivestar module so that users can rate events.

I want to create links using views so that users can easily sort these events by start date or rating.

So, to visualise this, the links would be something like below:

Events today
- By start time
- Top rated
Events tomorrow
- By start time
- Top rated
Events this week
- By start time
- Top rated
Events this month
- By start time
- Top rated
All events
- By start time
- Top rated

The events today/tomorrow/this week etc links would just list all events in any order (possibly alphabetical?) for that day/week/month etc.

But then when clicking on the sub links they would become sorted. So the 'start time' link would list events from that day/week/month etc descending in order of start time, and the 'top rated' link would list them ascending by voting results.

Now I'm no expert on drupal but I thought the way to achieve this would be to use an argument, but apparently you can't use voting results as an argument, so my question is: how do I achieve this in views besides setting up a different page for every single link? (or is that the only way?)

Regards,
Olddog

Comments

=-=

seems to me you don't need arguments with this. You can create multiple views displays inside a specific view. Each one filtering what you require.

Sorry..

..to jump in, how do you create multiple views displays inside a specific view? got a link?

=-=

use the display dropdown and choose a new display.
override where necessary using the override defaults button.

Thanks for the replies. So

Thanks for the replies.

So just setting up several pages within a certain view? If that's the best way to do it then fair enough, just wondered if this was the cleanest and easiest way to do it.

nobody click here