How can I display jCalendar popup in a block?
| Project: | Calendar |
| Version: | 6.x-2.2 |
| Component: | jCalendar popup |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi,
I want to construct a block that will display only the jCalendar Popup. But whatever I do I can't get the block views to display the setting "Date changer: Yes". It seems to be available only to calendar pages and not blocks.
Is such JCalendar Popup block currently possible? If yes, please help.
If not, then I guess this is a feature request. (it would also be cool if the page would start redirecting instantly as soon as the date has been selected, rather than clicking "Change date" button)
(I'm trying to build a very minimalist archive block, so that when people select the date of publication they are immediately take to it. jCalendar Popup is a perfect tool for this, if i can get it to work correctly)
thanks a lot!

#1
You'd have to rewrite the Javascript behind the popup, the code for which is generated on the fly, to insert the node data in a block instead of in the popup using the DOM. More specifically, in jcalendar.js, instead of appending the new div element to the body you could insert it in the right place, then comment out the location/offset setting code.
#2
Hi chooser,
Sorry, I didn't understand anything (because I'm not a coder). Are you saying I should copy the jcalendar.js code, modify it and paste it into a new custom block?
If yes, would you be kind enough to post here the modified code that I need to paste into that block?
Thank you for your help!!!