Tim,

When I took your workshop in Princeton, you showed a great feature for Full Calendar. You had tabs across the top of the calendar that were color-coded. I believe they represented the colors of color-coded events. So that each tab took you to a calendar view that only showed events with that color.

Is that something that you are working on or is it available currently?

CommentFileSizeAuthor
#2 Events.png63.31 KBLoube
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tim.plunkett’s picture

That site (http://philorch.org/concert/calendar) is not one I was involved with, it just uses this module.
It looks to me like custom code, but it could possibly be recreated with a module like http://drupal.org/project/menu_attributes.

Loube’s picture

FileSize
63.31 KB

Thank you for the direction. The Philly Orchestra site calendar is just the type of thing I would like to do for my calendar. I now remember that in your session. I checked out Menu Attributes and I'll be looking into how to use that.

I have another question. When I add events with multiple dates to the calendar using the "Add Another" (not repeating, I couldn't get that to display the way I wanted), they don't line up the way I would expect. I added a screenshot to show you how the events are not lined up across the week. Such as the purple event dates. This probably has to do with the dates. But I thought you might know why this is happening.

Also, how would I abbreviate the title of the event instead of the full title showing which takes up so much room. Or making the font smaller. Is this done in views?

Thank you.

pjcdawkins’s picture

Category: feature » support

I've been trying to do something similar to "tabs with colours", but using Better Exposed Filters. It's held back by #1206742: Contextual filters break Ajax views: Ajax date arguments should be replaced with hidden exposed filters at the moment, I'll let you know if I work it out.

I have another question. When I add events with multiple dates to the calendar using the "Add Another" (not repeating, I couldn't get that to display the way I wanted), they don't line up the way I would expect. I added a screenshot to show you how the events are not lined up across the week. Such as the purple event dates. This probably has to do with the dates. But I thought you might know why this is happening.

I expect that in the View you need to add "Sort criteria". E.g. you could sort by start date (asc) then end date (asc). Repeating dates work fine for me though, what problem did you have?

Also, how would I abbreviate the title of the event instead of the full title showing which takes up so much room. Or making the font smaller. Is this done in views?

You can abbreviate the title in the View: click on the Title field to configure it, then "Rewrite results", then select "Trim this field to a maximum length".

Making the font smaller should be done in CSS, for example:

.fc-event {
  font-size: 0.8em;
}
Loube’s picture

I changed the font using the code that you gave. That worked fine. Thank you.

I have tried to change the title length by rewriting but it doesn't make a difference. The title stays the same.

As for repeating dates, I couldn't get them to show on the calendar.