I have a view with all pages belonging to a content-type sorted by a CCK datetime field.

What I wish to do is to space out the view in correspondence of every year change with a header, using the CCK datetime field.

Is it possible? Thank You if you could answer

zoo

Comments

markabur’s picture

yes --

- first you'll need to set up a custom date format that shows year only.
- then, in your view, add a second copy of the datetime field, and set it to use your year-only date format. also set it to "do not display" (because we'll be using this field for grouping, and don't need the year showing per-record).
- in the options area for your fields display format, set your year field as the "grouping" field.

zoo’s picture

Sorry, I didn't see your reply when I posted below... I'm going to give it a try, anyway, thank You very much it sounds it is just what I wanted.

zoo

zoo’s picture

This is what I aim to achieve:

[inserting header based on the CCK, say "2009"]

- views item1, with CCK value equal to 2009

- views item2, with CCK value equal to 2009

[inserting header based on the CCK, say "2008"]

- views item3, with CCK value equal to 2008

- views item4, with CCK value equal to 2008

Maybe someone could help?

zoo