Hi,

I have tried this and searched a lot as well but couldn't find my answer.
I have a view (as a page) which shows all the nodes in my website.
I want to be able to filter the date range for my view using arguments.
So for instance if my view's path is

http://www.mywebsite.com/list

I would be able to see all the nodes that have been published during the last week/7 days like this:

http://www.mywebsite.com/list/week

or same for the last month/30 days

http://www.mywebsite.com/list/month

How would that be possible to do with Views arguments?

Comments

I was wondering whether my

I was wondering whether my question was unclear or there is no solution for this? In that case I need to re thinkg about using Views module for my solution

Passing a date range as an argument

If you're using views 2, you can use the GUI to add a date argument. Then in the url, you can put :

www.yousite.com/yourview/startDate--finishDate

For the startDate/finishDate, the format is YYYY-MM-DD-HH. You can leave some out and write, something like : 2010-12 or 2010-12-30.

GL!

This helped me out. Much

This helped me out. Much appreciated!

Calendar

Take a look at the Calendar view supplied by the Calendar module and look at the different displays on the view, for year, month, week and day. The arguments it uses are different than your examples, but it looks like the spirit is the same.

Thank you

Thank you very much, although it was not exactly what I wanted but I am sure it will help a lot
I need to see how they have done the arguments so I can come up with a similar method

nobody click here