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.
Comment | File | Size | Author |
---|---|---|---|
#3 | views_tabs-405536.patch | 725 bytes | jdwfly |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedsorry 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.
Comment #2
jdwfly CreditAttribution: jdwfly commentedI spent some time looking at the code and as far as I can tell grouping is not implemented during the render process.
Comment #3
jdwfly CreditAttribution: jdwfly commentedLet 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.
Comment #4
nedjoThanks for the patch! If someone can test and confirm that this solves the issue without consequences elsewhere I'd be happy to commit it.
Comment #5
juancarlos CreditAttribution: juancarlos commentedI 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?
Comment #6
jdwfly CreditAttribution: jdwfly commented@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?
Comment #7
jdwfly CreditAttribution: jdwfly commentedUpdate
Been using this for quite a while now with no problems. Has this been committed?
Comment #8
jdwfly CreditAttribution: jdwfly commentedMarked #602986: Only one node is displaying per tab as a duplicate
Comment #9
jdwfly CreditAttribution: jdwfly commentedShould be fixed since #626170: Not working with Views 6.2.7? was committed to head by me.