I have a CCK Date field in one of my content types.

I want to list all those content types for a given year.

In views I can obviously do this manually but this would require a new view to be created each year (along with a menu entry).

Is there a way to have this automatically happen?

So when 2012 comes a new view and menu entry for 2012 would appear automatically?

I have a feeling the solution is staring me in the face but I can't see it.

Thanks.

Comments

karschsp’s picture

Use a views argument for the year. You can set a default argument as the current year.

Take a look at: http://gotdrupal.com/videos/drupal-views-arguments

podsnap’s picture

Thanks karschsp.

That's really interesting. Never used the arguments before... scary!

bofrost’s picture

Please mark your topic as solved see: http://drupal.org/forum-posting#solved