By bestknight on
In Views, under Fields, some added fields have "group multiple values" as a handler. Can someone please explain how it works in order to group data?
I am trying to group records of a custom (CCK) content type and I cannot figure out how to do it.
Comments
Old thread I know, but I've
Old thread I know, but I've been investigating and found I misunderstood the purpose of this option, so I'm posting here.
"Group Multiple Values" does not group records like a MySQL GROUP BY would (which is what I wanted).
It collects the possible multiple values within a record, eg if you've got several tags applied to a node, it'll list them all in one place. The alternative seems to be creating a new row for each node - which is understandably usually undesirable.
I'm still looking for a way to display data grouped into subsections...
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
module "Views Group-By Pack"
I also would like that the option "Group Multiple Values" works like sql "DISTINCT" or "GROUP BY" commands.
If you want to group by taxonomy terms, you can use the module "views group-by pack": http://drupal.org/project/views_groupby_pack
Lluis Ribas
hostmaster@anacondanetwork.com
Lluis Ribas
I've been banging my head
I've been banging my head against the wall and sifting through dozens of post on Drupal.org
The closest I've come to some sort of solution is using the theme wizard (which I am about to test)
Surely this must be common functionality to group results into sets?
I'm not experienced enough with PHP to be able to quickly hand craft a solution
My situation is; I have Feed Items that need to be grouped by feed (parent), filtered by term and ordered by date modified
If someone has an idea of how to go about this it'd be really helpful now and in the future
I too hoped the "Group multiple values" option did this but from reading this thread it appears not :(
Is there any plans to add this functionality directly into the main views UI?
Current (Main) Project: http://www.wii-view.uk
Old thread for sure, but in
Old thread for sure, but in case someone stumbles over it...
The solution in Drupal 7 is to uncheck "Display all values in the same row" in the MULTIPLE FIELD SETTINGS tab of the field.
"If checked, multiple values for this field will be shown in the same row. If not checked, each value in this field will create a new row. If using group by, please make sure to group by "Entity ID" for this setting to have any effect."
Necromancer of the week award
^^^^^^^^^^^^^^^^^^^^
.dan. is the New Zealand Drupal Developer working on Government Web Standards