Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'm really pleased to see that colours have been integrated into the display system for FullCalendar. However, when I turn on "Enable colors for groups" I'm not seeing any of my Groups. Everything works fine if I choose any of the other 'colourable' options.
I'm using:
OG 7.x-1.0
FullCalendar 7.x-2.x-dev (although I'm getting the same behaviour with alpha5)
Views 7.x-3.x-beta3
Thanks
Comment | File | Size | Author |
---|---|---|---|
#23 | og_group_coloring.patch | 3.69 KB | aspilicious |
#8 | fullcalendar-1156046-8.diff | 2.67 KB | aspilicious |
#3 | fullcalendar-colors-og.patch | 2.45 KB | aspilicious |
Comments
Comment #1
aspilicious CreditAttribution: aspilicious commentedSrry for the late answer.
Yes this is a known missing feature. If you or someone else can tell me how to get a list of the groups in D7 I can make the color menu. And if someone can tell me how to link a certain entity/node to a group I can Fix the entire collor integration :)
Until than, this needs works :)
Comment #2
aspilicious CreditAttribution: aspilicious commentedI'm going to put some info in here for personal reference.
1) Code needed to get the group id's when we have the entity
2) Code for getting all the groups
I will try to create a patch even if I can't test it myself.
Comment #3
aspilicious CreditAttribution: aspilicious commentedI made a starting patch.
Some notes:
1) It probably doesn't work :)
2) I don't understand what the groups module does :D
3) I don't know how to create a group...
4) It contains a debug statement I forgot to remove.
So don't shoot me :). Feel free to fix help me with this patch or to explain to me how groups works in D7.
Comment #4
gmak CreditAttribution: gmak commentedI'm more than happy to help, although I'll only be good at installing stuff and telling you if it does or doesn't work (I'm not that good at coding).
I'm installing the patch, so I'll let you know how it goes.
Comment #5
gmak CreditAttribution: gmak commentedI've installed the patch, but there are still no groups showing up when the "Enable colors for groups" box is checked.
Hmmm, what do we try next?
Comment #6
aspilicious CreditAttribution: aspilicious commentedYou can tell me how to actually make a group. And how to make them active. :)
I can't test anything if I can't do that.
I tried some stuff in the UI but I didn't understand it.
Comment #7
gmak CreditAttribution: gmak commentedHere's the basic setup from the module:
http://drupal.org/node/1114890
Comment #8
aspilicious CreditAttribution: aspilicious commentedI fixed the UI part (I think).
With some help of the maintainer I managed to create a single group :D! (if I created a group lol)
And they show up in the UI.
Creating the correct colors in the calendar is a second step.
(srry for all the debug information when working on the calendar, if you remove the lines that start with dpm everything should work fine, except for og colors)
Comment #9
tim.plunkettComment #10
rorymadden CreditAttribution: rorymadden commentedsubscribe
Comment #11
bjlewis2 CreditAttribution: bjlewis2 commentedHas anything been done with this since May? I'd like to use this feature as well.
Comment #12
aspilicious CreditAttribution: aspilicious commentedNop, because I don't now how to use organic groups. I tried to make some code but it didn't do anything. (the admin screen worked but that was it.)
You can convince me to fix this by explaining how organic groups work and how to make a simple example in the #drupal-fullcalendar irc channel
Comment #13
bjlewis2 CreditAttribution: bjlewis2 commentedDo you need code? Or just a simple: "This is how you setup Organic Groups" tutorial?
I can't help with code, but I can help with the tutorial.
Comment #14
aspilicious CreditAttribution: aspilicious commentedI need a tutorial how to set it up and why its usefull (a use case). So I can understand the api functions.
Comment #15
bjlewis2 CreditAttribution: bjlewis2 commentedOk, I'll see what I can put together tomorrow and post back when I have something together.
Comment #16
theullrich CreditAttribution: theullrich commentedWhat happened with this? Is there a tutorial?
Comment #17
aspilicious CreditAttribution: aspilicious commentedNo :) so I still don't know how it "works". :)
Without help I can't code like I said before.
Comment #18
bjlewis2 CreditAttribution: bjlewis2 commentedNow that the 1.1 release is out for OG, I'm putting together a how-to series.
Comment #19
theullrich CreditAttribution: theullrich commentedgood deal i look forward to it.
Comment #20
bjlewis2 CreditAttribution: bjlewis2 commentedUntil I'm able to get new videos online, please checkout my last video at:
http://www.youtube.com/watch?v=CqMEY6WMmtE
It is a basic "how-to" for setting up Organic Groups in Drupal 7.
Comment #21
theullrich CreditAttribution: theullrich commentedactually i have already seen and watched that video couple times. Even sent you some money. But what i am wondering is if there is color support for organic groups yet.
Comment #22
bjlewis2 CreditAttribution: bjlewis2 commentedSorry, I should have specified that the video was for aspilicious, to help him understand Organic Groups. He said that he needed to understand the way OG works in order to write the code that you and I are looking for.
And thanks for the chipin ;)
Comment #23
aspilicious CreditAttribution: aspilicious commentedDid someone actually tested my first patch????
That one should have worked.
I changed the code a bit so it would apply to the latest code base but the basics are the same.
Thnx bjlewis for the video. I needed that :).
I still think OG is a complicated module...
You need the development version of fullcalendar for this patch. That version needs the colors module and update.php or it will fail :)
Comment #24
aspilicious CreditAttribution: aspilicious commentedSome screenshots to prove this works:
1) http://www.diigo.com/item/image/1fbht/q8rx
2) http://www.diigo.com/item/image/1fbht/mp72
3) http://www.diigo.com/item/image/1fbht/ku5b
I reviewed my own code 3 times.
I'm going to be bad and mark this rtbc and move it to Tim.
Comment #25
tim.plunketthttp://drupalcode.org/project/fullcalendar.git/commit/ec4ab99