Hi Tim,

I took your FullCalendar session at DrupalCamp in Princeton this month. I really want to get Full Calendar working on my first Drupal site. I currently have two problems though.

Firstly, I realize that the Date module is coming in to play here but I can't figure out why my calendar shows the event 3x on on the three Fridays when I only want it to show once a day for three Fridays. I tried using repeat date and not using repeat date but no matter. It looks the same. I have included a screen shot.

Secondly, the fc-header and buttons expand beyond the calendar content when my screen is normal sized. I have included a screen shot for this as well.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tim.plunkett’s picture

The buttons are generated by the plugin in a table (which is regrettable). You'll need some custom CSS to get them to not show up on one line.

One idea is to add all of the buttons into the center section, and do clear: left; on the ones you want on a new line.

The repeating events SHOULD be working. I'm sorry that you're having this problem.
Can you export your view?
Paste it into http://paste.pocoo.org and post the link here.

aspilicious’s picture

Do you need al the buttons? You can disable a few of them in the settings.

Loube’s picture

Hi Tim,

Regarding the repeating events problem, I exported the view and pasted it. Hope I did it right. Here is the link: http://paste.pocoo.org/show/551675/

As far as the CSS, would I be looking at the fullcalendar.theme.css in the Full Calendar Drupal module folder or the fullcalendar.css from Adam Shaw's jquery plugin?

Loube’s picture

Aspilicious,
That is something worth considering. Thank you for your suggestion.

tim.plunkett’s picture

Try removing the "Contextual filter" you have added in there, it shouldn't be necessary.

As for CSS, if you are going completely custom I would turn off jQuery UI from within the FullCalendar settings, which will remove a lot of the CSS you'll be fighting against. The customizations should go in your theme.

Loube’s picture

Tim,

I removed the Contextual filter and I still had too many events. But then I removed the sort criteria of Date and that fixed it.

I will work on the buttons next and I'll let you know how that goes.

Loube’s picture

Tim,

I turned off the jQuery UI and in the Calendar View, FullCalendar Settings, I rearranged the header items. Then I removed some buttons as aspilicious in post#2 suggested. Next I used the fullcalendar.css code added to my custom css theme code and changed the percentages for the header settings to what I show below. These things have helped keep the buttons from sliding off the calendar except in very, very enlarged computer screen view. Also it keeps the previous and next buttons from popping left and right when a month has more letters or less than a previous month.

So this works for me for now. At some point I may look into putting the Month in a row above the buttons to see how that goes.

Thank you for your help.

.fc-header-left {
width: 50%;
text-align: left;
}

.fc-header-center {
width: 25%
text-align: right;
}

.fc-header-right {
width: 25%;
text-align: right;
}

tim.plunkett’s picture

Status: Active » Fixed

Glad to hear that it's working okay.
I'm going to mark this as fixed.

Status: Fixed » Closed (fixed)

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