Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2009 at 23:26 UTC
Updated:
12 Oct 2009 at 17:50 UTC
I realize there are ways to do this using multiple embedded views or view attachments, but I would like to the following in a single view display.
Created a list of nodes sorted by taxonomy term and labeled at the top of each section. So I would have something that looks like this:
TERM "A" HEADING
------------------------
link to node tagged with term A
link to node tagged with term A
link to node tagged with term A
TERM "B HEADING
-------------------------
link to node tagged with term B
link to node tagged with term B
link to node tagged with term B
link to node tagged with term B
Comments
Comment #1
merlinofchaos commentedIn the style settings look for the 'grouping' select box.
Comment #2
curagea commentedI have the same question as the original poster, but when I tried the Grouping option, grouping by taxonomy term, it still lists my items as such:
TERM A
----------
Story 1
TERM A
----------
Story 2
TERM A
----------
Story 3
TERM A
----------
Story 4
TERM B
----------
Story 5
TERM B
----------
Story 6
etc...
It won't collapse them into:
TERM A
---------
Story 1
Story 2
Story 3
Story 4
TERM B
---------
Story 5
Story 6
Comment #3
davoso commentedIn the style, select a format and then in the grouping field select: Taxonomy: Term.
Also, mark the "Exclude from display" checkbox in the field options of Taxonomy: Term.
Comment #4
curagea commentedThat's exactly what I did. Still shows up that way.
Edit: Interesting... this occurs only if I'm logged in. Browsing as an anonymous user doesn't have this issue.
Comment #5
curagea commentedIt looks like the Devel module's Theme Developer is messing up the layout. If I disable it, the grouping displays properly. Would this be a Views issue or a Devel issue?
Comment #6
merlinofchaos commentedIt is known that theme developer's markup can sometimes clash with module's markup. Sometimes there simply is no fix.
In general you should only use theme developer when you actively need it, and leave it off all other times.
Comment #8
glennnz commentedHi
Sorry, gonna open this again.
I can't get this to work at all, the grouping is having no effect at all on the display of my block.
I have fields of node title of reference node (with CCK) and taxonomy term showing, with taxonomy term excluded from display.
Block style is a table, grouped by taxonomy term.
Node titles are just being displayed in date order, with no taxonomy headings showing at all. I'm assuming this is because my parent node has no taxonomy, I want to group by the taxonomy terms of the referenced node.
Cheers
Glenn
View export:
Comment #9
merlinofchaos commentedWith only 5 items per page you're probably not seeing much from the grouping. It might help to order by term first, and then date.