Grouping Field not working

bpcarlsen - March 18, 2009 - 00:47
Project:Views Tabs
Version:6.x-1.x-dev
Component:Miscellaneous
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs review
Description

Right now i have my view setup so that the posts are grouped by month (May, June, July, etc.) determined by the date field that is pulled into the view with a custom format to only display the month. I noticed with the views tabs that is splits each and every post into its own tab.

Is there a way to use the grouping filed (month) as the tabs so that every post that is associated with May will be listed under the May tab and the June under the June tab?

The grouping field that is under the tabs style doesn't seem to take. Also the date field that is being used for the tabs does use my custom format but seem to bring back the unformatted date. So instead of May, June, July i get 2009-03-25 10:00:00.

#1

bpcarlsen - March 18, 2009 - 00:50

sorry updated sentence:

Also the date field that is being used for the tabs does use my custom format but seem to bring back the unformatted date. So instead of May, June, July i get 2009-03-25 10:00:00.

to

Also the date field that is being used for the tabs doesn't use my custom format but seem to bring back the unformatted date. So instead of May, June, July i get 2009-03-25 10:00:00.

I meant to say it doesn't bring the custom format and not does.

#2

jdwfly - May 12, 2009 - 23:33

I spent some time looking at the code and as far as I can tell grouping is not implemented during the render process.

#3

jdwfly - May 13, 2009 - 15:25
Title:Grouping Field» Grouping Field not working
Category:support request» bug report
Status:active» needs review

Let me also give a little better description of the problem. Basically the view would output the tabs and then only output one item under each tab instead of all of the items under a tab.

After sleeping on it I was able to figure out what the code needed and I have patch supplied to fix the grouping problem. This seemed to work for me, but I want others to test it out.

AttachmentSize
views_tabs-405536.patch 725 bytes

#4

nedjo - May 13, 2009 - 16:09

Thanks for the patch! If someone can test and confirm that this solves the issue without consequences elsewhere I'd be happy to commit it.

#5

juancarlos - May 20, 2009 - 14:21

I need to use this patch as well... so I would be happy to test it. But I'm new to Drupal ~ How do I add this to the module?

#6

jdwfly - June 5, 2009 - 17:07

@nedjo
I've been using this for 2 weeks now and I have not seen any other issues pop up. I also know that juancarlos put it on his site as well (he contacted me via email to help him patch it).
You think you will be able to commit this?

#7

jdwfly - August 10, 2009 - 16:10
Priority:normal» critical

Update

Been using this for quite a while now with no problems. Has this been committed?

#8

jdwfly - November 10, 2009 - 21:22
 
 

Drupal is a registered trademark of Dries Buytaert.