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.
In the setting page you can change the css processing order and provide a custom default color.
Comment | File | Size | Author |
---|---|---|---|
#21 | fullcalendar-1195264-21.patch | 14.46 KB | aspilicious |
#15 | fullcalendar-1195264-15-interdiff.patch | 2.27 KB | tim.plunkett |
#15 | fullcalendar-1195264-15.patch | 14.1 KB | tim.plunkett |
#13 | fullcalendar-1195264-13.patch | 14 KB | tim.plunkett |
#13 | fullcalendar-1195264-13-interdiff.patch | 2.29 KB | tim.plunkett |
Comments
Comment #1
aspilicious CreditAttribution: aspilicious commentedNow without whitespaces ;)
Comment #2
aspilicious CreditAttribution: aspilicious commentedArgh.. what is happening to me :(
Another try...
Comment #3
paulgemini CreditAttribution: paulgemini commentedI added this patch and it seems to be functioning.
Comment #4
aspilicious CreditAttribution: aspilicious commentedWoow thnx for the testing. Didn't expect someone would use this so soon :). Did you try the css ordening to?
Comment #5
aspilicious CreditAttribution: aspilicious commentedReviewed my own code.
Hmmm, probably we always want the setting to be last, maybe we should give this a higher number. 20 or something like that.
This maybe looks odd but this was needed to make it work with empty calendars BEFORE the refactoring.
Im not sure if this is needed anymore. Will look at it in the next days.
Probably needs a better form id
I use the $i to give every row an unique weight as default.
Is there a better way to handle these variable set instructions
This is not user input, probably doesn't need a checkplain
If we put this in a fieldset in the form we can render it with one line I think...
I needed this to make the form work. Do you know why exactly?
Powered by Dreditor.
Comment #6
paulgemini CreditAttribution: paulgemini commentedWell I should add that I'm using the sandbox fullcalendar color extensions module.
Ha - and I should be more clear about the patch - the menu appeared and I saved the settings successfully. I haven't actually used it for anything yet:)
Comment #7
tim.plunkettNeed work per #5 ;)
Comment #11
aspilicious CreditAttribution: aspilicious commentedNew version rdy for a review
Comment #12
aspilicious CreditAttribution: aspilicious commentedThe whitespace is an illusion...
Comment #13
tim.plunkettHere's an interdiff and diff mostly for theme_fullcalendar_colors_admin_settings(), still some other coding tweaks to be made though.
Comment #14
aspilicious CreditAttribution: aspilicious commentedI don't like the table on top of the page.
1) its ugly
2) default color will be the primary use case (I think)
Comment #15
tim.plunkettOkay. Still, replacing the last couple drupal_render with drupal_render_children, and moving the tabledrag in the conditional.
Comment #16
tim.plunkettI've pushed up a heavily modified version of #15 here: http://drupalcode.org/project/fullcalendar.git/shortlog/refs/heads/11952...
Strongly considering splitting off fulcalendar_colors into http://drupal.org/project/colors. We'll see if I can think through a good architecture for it.
Comment #17
aspilicious CreditAttribution: aspilicious commentedI thought about this for a few hours and I can't see the added value of a seperate module.
To make the module generic you have to
1) Add classnames yourself into the code (or use an alrdy existing classname/selector)
2) build the css string yourself
3) provide the colours you wish to have as background/textcolour yourself
4) the modules implementing this will have to take the responsabilty to add the css in the right order themselves
So the color module *could* provide the folowing functions
- add_colors($selector, $colors (array) )
=> $selector a random selector or multiple selectors seperated by a ','. For example: 'article a, article a.active'
=> $colors an array, matching types of colour with a color
For example:
$colors = array(
'background' ==> black,
'text' ==> white
'border' ==> green
'...'
)
- RemoveSelector($selector) (==> $selector must be unique!)
- RemoveSelectors($moduleName)
==> For example we would like to remove all the colors made by fullcalendar_colors
This means we have to make a custom database table
- selector name ==> unique
- a column for each color type (background, text, ...) ==> Can you store an array in a database? Would be easier and extensible.
- a module name (defaults to "colors") ==> so we can remove colours of specific modules at once
Colors UI?
- This could be like my colors extension module
Selector | background | text | ... | operations
------------------------------------------------------------------
articla a | white | black | .... | remove
page a | green | yellow | ..... | remove
Conclusion?
Not sure yet... Brain freeze...
Comment #18
paulgemini CreditAttribution: paulgemini commentedQuestion - how do these changes relate to the FullCalendar colors extension project?
http://drupal.org/node/1177520 and then http://drupal.org/sandbox/aspilicious/1175528
I'm very interested in coloring fields based on their content
Comment #19
aspilicious CreditAttribution: aspilicious commentedWe are discussing if we can make a general coloring module. And fullcalendar_colors would build on top of that.
The fullcalendar colors extension project will probably be renamed to fullcalendar colors classnames in the end.
It will be a seperate module.
We are still brainstorming but I won't drop any features I added.
Comment #20
tim.plunkettThis would hopefully make it easier to incorporate them. We'll see.
Either way, I want that feature too!
Comment #21
aspilicious CreditAttribution: aspilicious commentedI think this is all we need. Based on the ctools branch.
Comment #22
tim.plunkettThere is a core bug with tabledrag that will cause a visual bug, but it will still work fine, and there is a patch: #303189-52: Tabledrag doesn't hide columns when the whole table is initially hidden.
http://drupalcode.org/project/fullcalendar.git/commit/31bfbae
http://drupalcode.org/project/fullcalendar.git/commit/7bef2e8