Hi, I have the following use case:

I have a set of scientific publications, and I would like to display them in this way:

Conference & Journals:
2009:
article 1
article 2
2008:
article 3
article 4
Workshops:
2009:
article 5
2008:
article 6

That is, I would like to group by "publication type" first, and then have each obtained group, sub-grouped again by "publication year". (If it is of any interest, I am also using the biblio module.)

Is it possible to get this with views? I found no documentation about it.

Your support is greatly appreciated. Thank you.

Alfredo

Comments

merlinofchaos’s picture

Status: Active » Fixed

At this time, Views only groups to one level, I'm afraid.

Status: Fixed » Closed (fixed)

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

obrienmd’s picture

Status: Closed (fixed) » Active

Merlin - Is this a planned feature in Views 3? If not, what sort of development resources / sponsorship would be required to make it happen? I may be able to procure one of both of these resources for this feature.

merlinofchaos’s picture

It is not a feature that I have on the roadmap. It is something that could theoretically be done with an external style. And if a good patch were submitted I would definitely consider it, so it may be worthwhile to bring a resource.

The main difficulty is UI. 1 level just requires a select box. Multiple levels requires list management. Add fields/remove fields, control the order. Once you have the list of fields and their order, the actual job of doing the tiered grouping is not actually difficult.

Bilmar’s picture

+1 subscribing. I unfortunately do not have any programming skills but would be available for any testing needed in the future.

alfredo.pironti’s picture

Title: Is it possible to group results by more than one group? » Add feature to group results by more than one group
Category: support » feature
Status: Active » Needs work

OK, so I'm converting this to a feature request, just to document it.

merlinofchaos’s picture

Status: Needs work » Active

Should remain active. 'needs work' generally indicates there is a patch attached that needs work (and most people never look at 'needs work' issues.

joachim’s picture

Didn't I comment on an issue just like this about 2 weeks ago? I posted a big theming workaround I used for this.

merlinofchaos’s picture

joachim: Possibly! There's so much traffic here I have trouble remembering it all.

joachim’s picture

I'm not surprised!

It was more directed at the original poster to go look for it...

but here it is: #673982: Group by several fields at the same time

@merlinofchaos: I'll let you decide which one to mark as a duplicate.

merlinofchaos’s picture

Status: Active » Closed (duplicate)

We'llmark this dup. That has more interesting info.

joachim’s picture

Hm actually, now I take a proper look at the example above, this is about several tiered levels of grouping, whereas the other one is about using several fields to collect in one kind of grouping... that might make these issues different after all, sorry!