Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Group fields by year Views Drupal 7

I want to group fields by a field called field_yea using Views in Drupal 7.

I used the Group by checkbox under Advanced Settings and selected Grouping field: field_year under Style options.
But the output is still:

2011
Content
2011
Content
2010
Content

instead of:

2011
Content
Content
2010
Content

What am I doing wrong?


Attached are screenshots from my Views settings and the content type I am using.

I really don't know why this is not working.

Screenshot Views Settings
Screenshot Content Type

like image 760
drupalhelp Avatar asked Mar 12 '11 18:03

drupalhelp


2 Answers

Since Views 7.x-3.2+ you can just turn on the option "Remove tags from rendered output". It works with the RDF module enabled.

You can see an screenshot on http://drupal.org/node/1235994#comment-5606370

like image 153
Yaazkal Avatar answered Sep 28 '22 07:09

Yaazkal


Another comment on drupal should help: http://drupal.org/node/1253562#comment-4886998

Just disable the RDF-Module. After disabling and resaving the date formats it worked like a charm (Drupal 7.8 - Views 7.x-3.0-rc1 - date 7.x-2.0-alpha4).

like image 39
phils Avatar answered Sep 28 '22 09:09

phils