Events In Calendar Need To Smaller

GreenLED - December 14, 2007 - 05:10
Project:Event
Version:5.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Here's my delemha. I'd like to be able to edit what is included on the month view on the calendar. There's to much information in each box, which makes each day that an event is listed in insanely tall, throwing the calendar of balance. I'd like to be able to edit the formatting of what is written. Perhaps, this could also be a feature you add. For now though, just give me the snippet of code in (event.module) where I can locate the location and remove say some concatenation or extra info that I don't want.

An Example:


Here's what one of my events listed inside a box on the month view says...

(event)
MamaMia!
Start:
12:10
am
End:
12:20
am

That's exactly how it looks visually just so you know.

I want to remove: EVERYTHING, except the name of the event.
Also, I could change the italic to normal.

Here's the page so you can see it: Test Calendar

Don't go signing up for anything, they're all fake, lol.

I'd appreciate a snippet of code, like this perhaps:

  if ($type == 'node') {
    // node links
    if (event_enabled_state($node->type) == 'all') {
      $links['event_calendar'] = array('title' => t('Calendar'), 'href' => 'event/'. format_date($node->event_start, 'custom', 'Y/m/d'));
    }
    elseif (event_enabled_state($node->type) == 'solo') {
      $links['event_calendar'] = array('title' => t('Calendar'), 'href' => 'event/'. format_date($node->event_start, 'custom', 'Y/m/d') .'/month/'. $node->type);
    }
  }

Attached: Screenshot of my calendar.
[ in case my site changes ]

AttachmentSize
Calendar.jpg23.35 KB

#1

drupal.tim - May 1, 2008 - 19:46

I would like to know how to do this, too.

#2

jt_jones - May 1, 2008 - 20:03

As a non-coder...I just edited the event.css file. Of course, you'll have to keep track of your changes for when the module gets updated.

#3

killes@www.drop.org - May 6, 2008 - 18:44
Status:active» fixed

Indeed, theming is the answer.

With event.module 5.2 you can actually have a modified event.css file in your theme's directory.

#4

Anonymous (not verified) - May 20, 2008 - 18:51
Status:fixed» closed

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

#5

GreenLED - June 25, 2008 - 18:21
Assigned to:GreenLED» Anonymous

This was before I didn't understand what "Assigned" meant. I still don't, but I know I'm not assigned to this :). Does anybody know who is or -- should be?

» Respectfully, GreenLED
» Stable Files . net

 
 

Drupal is a registered trademark of Dries Buytaert.