Hello, I have nodes for each shows, which are presented to the front page as well as gig schedule section. I didn't want to use calendar module for a few reasons I don't go into right now.
What I am looking for is to archive each schedule nodes automatically when the date passed. I still want them to be viewable when visiter wants to see where we usually perform, but removed from the schedule main section as well as promoted front page section.
Is it possible?
On Friday 29 June 2007, A-NO-NE Music wrote:
Hello, I have nodes for each shows, which are presented to the front page as well as gig schedule section. I didn't want to use calendar module for a few reasons I don't go into right now.
What I am looking for is to archive each schedule nodes automatically when the date passed. I still want them to be viewable when visiter wants to see where we usually perform, but removed from the schedule main section as well as promoted front page section.
Is it possible?
1) Set newly created gig nodes to "promote to front page".
2) Cron hook to set "promote to front page" to false on a node once it's passed.
3) Setup your Views to filter on "promote to front page".
"Promote to front page" is only used by core for the default 'node' front page. If you're not using that, then it's unused and you ca repurposes it however you want. Alternatively you could use Sticky for it if you want.
Or... heck, Views can filter based on the date, so just only show events with a date in the future. :-)
Larry Garfield / 2007/06/30 / 12:11 AM wrote:
- Set newly created gig nodes to "promote to front page".
Sorry I wasn't clear on this one. I promote only 3 upcoming shows to front page, and usually newly created gig node is much later date.
Or... heck, Views can filter based on the date, so just only show
events with
a date in the future. :-)
Ahhh, so, I can archive them with View filter set by date as well. Brilliant! Thank you so much. I will try this.
Larry Garfield / 2007/06/30 / 12:11 AM wrote:
Or... heck, Views can filter based on the date, so just only show
events with
a date in the future. :-)
I am still having trouble with this. Views with dates in future and archiving the past are working great. Only one, but rather big problem. The weekly shows disappeared since there isn't a static date attached to it.
I have tried different filters but nothing seems to work. At this point, I wonder if I have to do View in a View thing.