I can't create multiple groups with my view. It worked for me initially, when I wanted to group only one, but when I tried to do multiple grouping, I could no longer group until I turned off RDF module. I wanted this format:

July
July 25th, 2012
Event 1
Event 2

July 31th, 2012
Event 1

August
August 12th, 2012
Event 1
Event 2

August 21th, 2012
Event 1

I first grouped by just the month and it worked. When I then tried to group by month and the date, it didn't work and I couldn't even return to the group by just the month grouping. I'm using Views 7.x-3.3 and Drupal 7.14.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Did you setup the grouping to strip tags, this is required exactly because RDF is using some additional html, which differs from item to item.

Bensbury’s picture

This fixed grouping for me, but I finally got here from lots of people trying to figure out how to do group by on dates in another forum and on other sites.
This seems like the answer, but only thanks to your comment here.

Perhaps an explanation to why you would want to strip tags in the view UI.
I looked at it, and thought, 'okay nice, but maybe I don't need that', because it has no context. The 'Use rendered output to group rows' has a little explanation, so perhaps 'Remove Tags from Rendered Output' needs one.
I have a feeling a lot of people are disabling RDF module in core as a solution instead.

dawehner’s picture

If you have an idea about a helpful description please suggest one.

Bensbury’s picture

Okay, but I don't know the full scope of how stripping the tags works with the module but, basically what your comment states.

"Some Modules may add html to the Grouping output preventing them from grouping correctly. Stripping the Tags should correct this."

All I needed was a hint about why I might want to strip tags, being ignorant that modules were adding in mark up and messing the matching.

esmerel’s picture

Component: Views Data » Documentation
Category: bug » task
Status: Postponed (maintainer needs more info) » Active
scor’s picture

Status: Active » Needs review
FileSize
728 bytes

Here is a patch with a slightly modified version of the suggestion in #4.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Oh i like that! This is really an improvement!

scor’s picture

Version: 7.x-3.3 » 7.x-3.x-dev
Issue summary: View changes

Bump. This documentation patch is a no brainer which should help folks setup views.

colan’s picture

We've recently switched our testing from the old qa.drupal.org to DrupalCI. Because of a bug in the new system, #2623840: Views (D7) patches not being tested, older patches must be re-uploaded. On re-uploading the patch, please set the status to "Needs Review" so that the test bot will add it to its queue.

If all tests pass, change the Status back to "Reviewed & tested by the community". We'll most likely commit the patch immediately without having to go through another round of peer review.

We apologize for the trouble, and appreciate your patience.

  • DamienMcKenna committed 5937d31 on 7.x-3.x authored by Bensbury
    Issue #1684990 by scor, Bensbury: Added a description explaining why the...
DamienMcKenna’s picture

Status: Reviewed & tested by the community » Fixed
Parent issue: » #2855120: Plan for Views 7.x-3.16 release

Committed. Thanks!

dawehner’s picture

This is something IMHO which should be fixed in core first, given that the code is the same there.

DamienMcKenna’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.