Hi all,

I have nodes (stories) that are related to a printed and weekly publication.
Using CCK, I have added an extra field to the stories. This field is a date field and corresponds to the date when the printed publication appears.

My purpose is to show a block with a list of stories that also appear in the current printed publication so I have created a view and it shows correctly as a block but I have no idea how to filter the stories and only show the stories of the current week?

Anybody has an idea on how to tackle this? Thanks for your suggestions...

Erik

Comments

pbarnett’s picture

Hmm.

It's simple to filter on the date field for stories whose datestamp day/month/year is equal to (or alternatively greater than) a specific date; doing it for stories published during the current week would take more doing...

Pete.

adam_b’s picture

Don't know if this would work with your extra date field, but you could take a look at http://drupal.org/project/week

erikwillemse’s picture

It seems that there is a way to use ISO weeks in the views arguments (see also http://drupal.org/node/92188) but I cannot figure out how enter the cck field correctly and how to setup a view with the correct arguments to filter for the current week.
Anybody any experience and examples with this?

Thx.

Erik

Grammarian’s picture

I have a content type that is "selection of the month" and I want to show only those for the current month. The current month is a CCK date field in the node.

Jean Gazis
www.jeangazis.com