Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#6 | 1684990_6_views_grouping_docs_strip_html.patch | 728 bytes | scor |
Comments
Comment #1
dawehnerDid you setup the grouping to strip tags, this is required exactly because RDF is using some additional html, which differs from item to item.
Comment #2
Bensbury CreditAttribution: Bensbury commentedThis 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.
Comment #3
dawehnerIf you have an idea about a helpful description please suggest one.
Comment #4
Bensbury CreditAttribution: Bensbury commentedOkay, 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.
Comment #5
esmerel CreditAttribution: esmerel commentedComment #6
scor CreditAttribution: scor commentedHere is a patch with a slightly modified version of the suggestion in #4.
Comment #7
dawehnerOh i like that! This is really an improvement!
Comment #8
scor CreditAttribution: scor commentedBump. This documentation patch is a no brainer which should help folks setup views.
Comment #9
colanWe'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.
Comment #11
DamienMcKennaCommitted. Thanks!
Comment #12
dawehnerThis is something IMHO which should be fixed in core first, given that the code is the same there.
Comment #13
DamienMcKennaI created a new issue to port this change to D8: #2861536: Add field description to explain "Remove tags from rendered output" option more clearly