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.

CommentFileSizeAuthor
#3 views_tabs-405536.patch725 bytesjdwfly
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

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.

jdwfly’s picture

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

jdwfly’s picture

Title: Grouping Field » Grouping Field not working
Category: support » bug
Status: Active » Needs review
FileSize
725 bytes

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.

nedjo’s picture

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.

juancarlos’s picture

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?

jdwfly’s picture

@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?

jdwfly’s picture

Priority: Normal » Critical

Update

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

jdwfly’s picture

jdwfly’s picture

Status: Needs review » Fixed

Should be fixed since #626170: Not working with Views 6.2.7? was committed to head by me.

Status: Fixed » Closed (fixed)

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