Is there any way to group displayed fields in views2 by term from specific vocabulary except using context taxonomy module?
I have a node type book and a vocabulary series which contains names of the series each book belongs to. I need to make a list that looks like:
The Vampire Chronicles (taxonomy term)
- Interview with vampire (node)
- The Vampire Lestat
- The Queen of the Damned

It is easily done with context taxonomy module but it has a critical bug. I've made a content taxonomy field from my series vocabulary in the node. I use save terms both to core taxonomy and module mode. If i delete any term or vocabulary associated with that field through core taxonomy menu all other CCK fields content in all nodes that have this content taxonomy field got deleted.

Comments

Draven_Caine’s picture

Greetings,
Views can filter on many diffrent grounds, i use a few of them alot : content type, taxonomy.

P.S. you can message me for help
Draven
Http://www.shattered-broken.com

tizzo’s picture

Actually what it sounds like you want can be accomplished by adding taxonomy term as a sort on your view. This will group the nodes by taxonomy but will not give you "The Vampire Chronicles" as a header for the items in that term. I think that this is what the Views Group By module does but it does not currently have a version for Drupal 6.

If you are using 6 this is not a helpful answer, if you're using 5 it could be what you're looking for.

BakaNyaka-1’s picture

Thanks for your answers but the problem is that I have many vocabularies attached to this type of node. I only need to group by terms from one of them and views dont allow me to make a field with terms from a specific vocabulary to do that. Im using D6 so can't check if Views Group can help me.

I've found one solution but it's pretty complex just for a purpose of grouping. I can make new node type series and make a node reference field in book node that links to it. Then I'll have to make node for each serie name and insert a view into it that will show all nodes linked to it so it emulates taxonomy term page. This way I'll be able to make another view with nodes grouped by this nodereference field. The advantage of this method is that i'll be able to make series description or add some other fields into serie node but I dont need this extra functions right now and would prefer a simplier solution. So i would much appreciate any help on finding it.

PS: I hope you could understand me. My english is far from perfect.

Draven_Caine’s picture

to make a view by term, you need a few fields (your choice) than add a filter of taxonomy "term" chose your taxonomy term, use dropdown and show hierarchy, than choice the term.

a good example is the art, music or goh section of my website, now to make it a bit simpler you can make this a page display and just add a path and menu tab.

Site http://www.shattered-broken.com
http://www.shattered-broken.com/?q=Art

if you need more help please message me thru this site and i can help you more.

Bensbury’s picture

I was searching about for an answer so despite this thread being old, this'll helps those who stumble across like me:

All I did was sort by term.
Then change the view style to Fields, adding in all the fields I wanted to display.

Then I added Term in as a field, but selected to not display it and removed the label.

Finally I hit the style cog for unformatted (although grid has it) and chose group by 'term'.

The view then groups the output by the term and displays the term name as a header.
I think that is what the original poster was after so I hope this helps someone.

Leglaw’s picture

Your comment was very helpful.

Melissamcewen’s picture

The problem I had was that if there are multiple terms for a node it groups it like this
apple
-gala
apple, scottish
-macintosh

MarcGuay’s picture

This should be in a tutorial somewhere.

polishyourimage’s picture

DISPLAY TYPE: PAGE
Style: Unformatted (Group field: Taxonomy: Term)
Row Style: Fields
Fields:
- Node: Title
- Taxonomy: Term
Sort criteria
- Taxonomy: Term asc
Filters
- Node: Type = yourcontenttype
- Taxonomy: Vocabulary = yourvocabulary

polishyourimage’s picture

DISPLAY TYPE: PAGE
Arguments
- Taxonomy: Term
- - Action to take if argument is not present: Provide default argument
- - - Default argument type: Fixed entry
- - Glossary mode: checked

DISPLAY TYPE: ATTACHMENT
Arguments
- Taxonomy: Term
- - Action to take if argument is not present: Summary, sorted ascending
- - Glossary mode: checked
- Style: Unformatted (Display items inline: checked)
Attachment settings
- Inherit arguments: No
- Inherit exposed filters: No
- Inherit pager: No
- Render pager: Yes
- Position: Before
- Attach to: Multiple displays

roseba’s picture

This worked for me.