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.
Tooltip is filled with the list of the day events when mouse gets over a day cell.
I'm still working on improving it (css styling and a better mechanism for long lists), but this first patch is usable.
It applies against HEAD tag, but it can easly ported also on 5.x.
PS:It could be need to refresh the site theme in order to apply the new style properties.
Comment | File | Size | Author |
---|---|---|---|
#3 | event_block_tooltip2.patch | 4.04 KB | samuelet |
#3 | event_block_tooltip2-with-timer.patch | 4.16 KB | samuelet |
#3 | event_block_tooltip2-5.x.patch | 3.82 KB | samuelet |
event_block_tooltip.patch | 2.71 KB | samuelet | |
Comments
Comment #1
MichelleI'm not able to test the patch right now but I want to say I love the idea and I think it would be a great addition to the module. I've seen similar on other calendars and it's a great feature.
Thanks,
Michelle
Comment #2
Gerhard Killesreiter CreditAttribution: Gerhard Killesreiter commentedI too like the idea. Let us know when you want people to test your patch. Also, please provide your patch in "unified" format (the -u option).
Comment #3
samuelet CreditAttribution: samuelet commentedI'd be really glad if anyone could test it (also for browser compatibility) and give some feedback.
The new patch changes the format of day events according to the table format view, adds a scroll bar for long lists and tooltip div should remain contained into calendar div just to prevent out of screen problems.
I've no idea if the table format is less suitable for a tooltip mechanism than a simple event unordered list without extra informations (like the previuos patch), but i'm open to any opinion.
At this moment i'm tryinig to attach a timer to the tooltip displaying in order to prevent unwanted tooltips and server load.
Unfortunately, with this feature on, browsers don't work as i aspect. Tooltip looses unexpectedly the focus and becames unusable.
In attachment:
1) The currently working patch for HEAD tag.
2) The buggy patch with timer support for development purpose.
3) A not fully tested patch for 5.x. It should work but i've only succesfully tested a mix of an HEAD eventblock.js with patch 1) and 5.x event.module and event.css with patch 3).
Comment #4
Smejko CreditAttribution: Smejko commentedHi, it's nice patch but i found a bug.
Tooltips is displayed only for loaded month. If I click for next of prev month (or back to beginning) tooltips aren't display.
I used event_block_tooltip2-5.x patch.
Can you fix it? I tried it but i can't JS.
Thanks
Comment #5
samuelet CreditAttribution: samuelet commentedUhm, strange. It should work for next-rev month too, as you can see here:
http://www.gas.ms.it (August and September 2008).
What version (if HEAD, what date) of event module did you installed?
It could be also a visual bug (i.e: tooltip wrong position so it's hided). In this case it depends on you theme. The Garland theme should work correctly.
Comment #6
japerryEvent for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.