Hi,

I'm trying to group my result by view field type but it doesn't seem to do that. The field appears on a list of fields by which we can group. If I select that view field it doesn't group, instead it is displayed as normal field next to other view rows.

Any help much appreciated.

Cheers,
Rafal

Comments

dawehner’s picture

Status: Active » Closed (works as designed)

This is currently something like a bug in views. The problem is that there is no way to disable the grouping functionality for a certain field.

MBroberg’s picture

Status: Closed (works as designed) » Active

Sorry to re-open, and if it cannot be fixed I understand, but it would be very helpful to use the view field as a grouping field.
Is there some hidden data in the view that causes it to have unique values? it seems like if the view is a field, you should be able to group by it just like a regular field and set to exclude from display.

damiankloip’s picture

What sort of things would you want to group by from the child view? As most of it processing etc is pre_render and render stage, I'm not sure this would be possible to affect the parent views query.

cimo75’s picture

Same problem here:
i am using an All Terms field which I feed to a Field View as argument, grouping by All Terms works but grouping by Field Views doesn t.
Is there a way around it? Maybe something like rewriting the All Terms field with the Field View, i tried different ideas but none works.
Simone

damiankloip’s picture

Status: Active » Closed (won't fix)

I don't think there is a good way to do this, and I don't think this module is willing to try and support it. Grouping by the result of a view just doesn't make sense.

cimo75’s picture

damiankloip I think I have a perfectly understandable example:

I have a Taxonomy describing towns and bars in any town like so:

*town1
**bar1
**bar2

*town2
**bar1
**bar2

Then I have a content type which is tagged with a "bar" (let s call it an event content type)

i have another content type that is a description of the bar and is also tagged with the town/bar taxonomy. Note that although there is a bar term for each physical bar in town there is not necessarirly a description content type for it.

My view then should be:

*bar1 (all term, hidden)
(description of bar1 as a view field using all term as argument) <- grouped by
*event1
*event2

*bar2 (all term, hidden)
(description of bar2 as a view field using all term as argument) <- grouped by
*event3
*event4