Show a field only once if the value is the same I have a content-type with a field "Shooting Date" of type "date".

I have a block-view which collects all nodes of this type.

I sort these nodes by "Shooting Date".

I now want to display the year at the top, then all elements in this year.

E.g.:

2017

-Node 1

-Node 2

-Node 3

2016

-Node 4

What I have by default ist:

2017
-Node 1

2017

-Node 2

2017

-Node 3

2016

-Node 4

Can anyone tell me how I can show the year only once if the value is the same?
You might want to use the "Grouping field".


Add your date field to your views.
Click the "Format Settings"





Select your date field in "Group Field".





Tick the "Use rendered output to group rows".
Tick the "Remove tags from rendered output".
Change the date format to "Y".





Save.