Hi,
I just created a view as instructed on the project page. Everything seems to work fine on the live views preview, but when I create a page display and go to the path it displays all nodes in a list and not a calendar...
Is it a bug or am I missing something?
Thanks

Comments

jwhat’s picture

Category: bug » support
Status: Active » Fixed

Make sure that in your view you add a Page and then set the following:
Style: FullCalendar
Row style: Node - FullCalendar
Path: a relative URL of your choice

gorgo’s picture

The page display was using the default and I also double checked and tried overriding the defaults and manually choose Style: FullCalendar and Row style: Node - FullCalendar, and again on the views live preview it works great but on the the page.

It must do something because the result I get is:

[node-title] : [From-date] to [To-date]

and all nodes are wrapped in div class: fullcalendar_event
but they render one on top of the other, not as a calendar...

gorgo’s picture

Status: Fixed » Active
tim.plunkett’s picture

Version: 6.x-1.2-beta5 » 6.x-1.x-dev

Can you please post screenshots?

gorgo’s picture

I was gonna make some screen shots when I realized this might be a theme issue, so I switched to garland and it does fix the problem! so it's definitely something to do with my theme.

Does anybody have any idea what could cause this?
Both the views UI and the view path use the same basic page.tpl.php, so I'm really not sure why it would work on the views UI but not the view page....

gorgo’s picture

Status: Active » Fixed

OK...
It turns out I had a conflict with a JS file in my theme.
Sorry for bothering everybody with this dumb error and thanks for the help!

Changing this to fixed.

ithacaindy’s picture

gorgo: what JS file was conflicting? I'm using the OpenPublish theme and have the same problem (inside views perfect, outside just a list.)

gorgo’s picture

I'm using a custom theme and it my own JS file.

I can have another look at the function that was causing the problem if you think it will help you, but will only be able to do it tomorrow...

nicholasThompson’s picture

Priority: Normal » Major
Status: Fixed » Needs work

The problem appears to be if the page template puts the $script at the bottom. I moved it (in my custom theme) to the <HEAD> and it worked fine.

The issue is in views-view-fullcalendar.tpl.php - $(document) doesn't exist if JQuery isn't loaded yet.

Personally I think this is a pretty big problem as a lot of themes put $script at the bottom (for performance reasons). Maybe View settings should get pushed into the JS Settings array (using drupal_add_js)?

jwhat’s picture

Yet another bug that I fixed when working on #906112: handle drag and drop: creating events, rescheduling events. I replaced the $(document) notation with the proper Drupal behavior syntax: Drupal.behaviors.fullCalendar. Please see the patch on that issue for more info.

tim.plunkett’s picture

Status: Needs work » Closed (duplicate)

As much as I'd like to split up #906112: handle drag and drop: creating events, rescheduling events into all of the issues it addresses, we're so close with that issue that it's not worth it.