I'm putting together an Australian rugby league community site, dedicated to one particular team for fans to interact and obtain team and game stats. One of the features is to show a block that displays the next game/round to be played (with the idea of displaying the next game within the same Block, changing from week to week of course).
There are 20+ rounds played within this competition (one game per week) and I have created a new content type that gathers/displays team info and the date that the game is played on as well as the 'game-round #', ie. node1=round 1 and so on. A date is presented within a field on each node (there are 26 nodes in total, representing the 26 rounds of the competition).
As the year progresses I need to have a single Block that displays each upcoming game/node, one at a time. I can create a View with a date Filter that outputs the node fields to a Block but I somehow need to tell the View to remove node 1 after week 1 and replace it with node 2 seven days later, and so on throughout the year. All of this needs to happen in the same Block automatically each week.
I've explained this as best I can and hopefully well enough for a Views-maestro to offer some ideas.
I'm using D6 (which is an amazing upgrade especially working with Views).
Any ideas appreciated.
Tim
Sydney, Australia
Comments
=-=
in your date filter you need to play with >= now.
If using the date.module for dates. Get the calendar.module. Install it.
enable the calendar view
clone it
rename it
disable original calendar view
using the upcoming view included in your cloned view, inspect the way it handles dates in the upcoming block.
Another method would be to deploy the scheduler.module and schedule your nodes to become published. use a filter for published nodes. when the one event falls off , the scheduler will kick in based on when you scheduled it for and it will then show in the view.
Are you using a CCK date
Are you using a CCK date field for the date?
nevets, yes, I am using a CCK
nevets, yes, I am using a CCK date field.
I'm finding that View will create a new, different Block for each date argument that I create. The Block needs to be updated automatically each week - we've been doing this manually now for years and it's a pain.
misunderstood, cheers for the thoughts. I've cloned/renamed the View and experimented for the past few days but still a new block is created with each new argument. We need to output the nodes/fields within the same block with no human intervention.
What do you mean by
What do you mean by "different Block for each date argument that I create", I would use a filter against the date field and compare to now.
=-=
once you get the date filter working correctly you will want to restrict the view to only show 1. when that 1 falls off based on your > now setting, the next will show automatically.
Then if you wanted, since you already have the data, you can create past games block which can show < now date filter
andf if you REALLY wanted to, you could also create a current game block with an = now date filter.