There is no way now to show multiple calendars on one page. For example, you can not create a page with a calendar and then also have a block on that page with a calendar. (as talked about on irc)

Comments

tim.plunkett’s picture

Title: Multiple calendars » Multiple calendars per page
Version: 6.x-2.x-dev » 7.x-2.x-dev
Category: feature » bug

This is due to hardcoding the ID #fullcalendar in fullcalendar.views.js, fullcalendar_handler_empty.inc, and views-view-fullcalendar.tpl.php.
This should use the view-dom-id to distinguish them.

This issue has nothing to do with making fullcalendar look nice in a small block, that can come in a follow-up, if it's even possible.

Michsk’s picture

This issue has nothing to do with making fullcalendar look nice in a small block, that can come in a follow-up, if it's even possible.

That's also not what this issue post is about, the block case is just an example...

tim.plunkett’s picture

I know, but it'll freak people out when they try to test any patches, so I wanted to warn everyone. :)

Michsk’s picture

ah lol.

tim.plunkett’s picture

Status: Active » Needs review
StatusFileSize
new12.58 KB
new16.83 KB

Okay, so this was a mess.
Basically, all of the CSS ids are now classes, and fullcalendar.views.inc just loops through all the views on the page.

Attached is the actual patch, and one without indentation changes for easier reading.

tim.plunkett’s picture

StatusFileSize
new16.84 KB

Okay, this fixes an issue with colorbox.

Never put debug_backtrace() inside l(), even for debugging. Don't do it.

aspilicious’s picture

Status: Needs review » Reviewed & tested by the community

Actually with some tweaking you can do some nice things with it.
==> http://awesomescreenshot.com/0b97as65f

Tested colorbox and some other stuff, works great :).
This has to be module of the month with all these improvements.

tim.plunkett’s picture

Status: Reviewed & tested by the community » Fixed
Michsk’s picture

holy moly, all ready even tested and committed. I surely have never seen such speed. Great. I will give it a run today.

geerlingguy’s picture

lol - I love how quickly things are done with this module. If only every module's committers were this active!

Michsk’s picture

ah. D7. I will try to port this patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

aspilicious’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new12.62 KB

Here is a patch it doesn't work yet but I think it is caused by some minor errors.

And probably caused by these lines:

    // Use :not to protect against extra AJAX calls from Colorbox.
    $(index).find('.fullcalendar:not(.fc-processed)').addClass('fc-processed').fullCalendar({

And while backporting I couldn't make an array off

'class' => 'fullcalendar-event-details',

So this needs to be looked at to

tim.plunkett’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev

Clarifying which version

aspilicious’s picture

Status: Needs review » Needs work

After reviewing my own patch file I discovered this:

drupal_json_output should be drupal_json so drag and drop is/was broken. But after changing that it still doesn't work. I tried to get my head around it but I failed.

tim.plunkett’s picture

Status: Needs work » Fixed

The HTML class passed to l() can't be an array in D6, changing that and drupal_json_output to drupal_json worked for me.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

drubage’s picture

Was this fixed in any Drupal 6 versions? We cannot put 2 calendars on the same page we end up with 2 of the same calendar. Any ideas? We have a block view that takes an argument and are using quicktabs with the view/argument.

aspilicious’s picture

Quicktabs and fullcalendar argument can go wrong. Try with duplication the view without an argument.

Joseph@humber’s picture

Duplicating the view doesn't work. I was looking at the patch. I'm assuming it's for D7? Right now I can't upgrade unfortunately. Any way to get multiple calendars going in D6?

Joseph@humber’s picture

Status: Closed (fixed) » Needs work
drubage’s picture

I made a site with 2 calendars on the same page, 2 view blocks in 2 quicktabs. I had to do some tricks like show both calendars but then hide one once the page had loaded but it can be done.

Joseph@humber’s picture

Priority: Normal » Critical

Anyone have a solution for D6?

tim.plunkett’s picture

Priority: Critical » Normal
Status: Needs work » Active
tim.plunkett’s picture

Status: Active » Postponed (maintainer needs more info)

Can you try this without quicktabs, like a page view and a block view or two block views?

tim.plunkett’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
parampadam’s picture

StatusFileSize
new11.46 KB

I try to put multiple instances of Fullcalendars on one page in different ways:
created one view with a page display with several displays: 2blocks and 2 view panes, all without contextual filters (see attachment for the export)

I tried:

  • the page display with a block
  • two blocks on one page
  • two blocks in a pane with page manager (my favourite solution)
  • two view panes in a pane with page manager (my favourite solution)

i cloned the view an tried the same options with the different views
Module versions i tried:
FullCalendar 7.x-2.0-beta3, and 7.x-2.0-beta3+4-dev (-without the above patch, my newbie mind told me, they are submitted in my versions)
Views 7.x-3.3+103-dev
Panels 7.x-3.2

i hope you got enough informations for some help
thx in advance, parampadam