I have been playing around with views, cck, date and calendar

I have failed to get a view to show a view of this week's events.

I need tabs on my events page to display as follows

All | Today | This week | This month | Random

Thank you

Comments

KarenS’s picture

Status: Active » Fixed

You can use the Calendar module to get a view with links to the year, month, week, and day view (with back/next navigation on each). This will default to the current month. (In the D6 version you can choose whether it will default to the current year, month, day, or week).

Or you can create a regular view, set it to the 'Date Browser' type and again get back next navigation. With the date browser, your time period is set by the date argument you use, so you could use P1W to show 1 week, defaulting to the current week, P1M to show 1 month, defaulting to the current month, P1D to show 1 day, defaulting to the current day, etc.

Setting up tabs will either take custom code or could be done by creating a separate view for each tab where all use the same base path and a different extension, like date/week, date/day, date/year. You have to read up on how to set up tabs in views to do that.

The rest of it will take custom code, that's what you can get out of the box.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.