Node display for Calendar Events

Shawn DeArmond - August 31, 2006 - 20:43

I have installed the Events module and for the most part, it's functioning just fine. However, I would like to know how I can go about changing how each node is displayed in the various calendar displays. The single node display is fine.

For instance, on every event in the various calendar displays, I have a link above it that says "(event)" and a link below it that says "Email this Page".

Since I only allow the type Event to be posted to the calendar, every single item in the calendar says "(event)".

I would like to remove these two links from the calendar displays, but I do want them (at least the "Email this page" to show up in the individual node display.

I know that I can make "Email this page" dissappear entirely from all events, but I would like "Email this page" to appear on the single node page.

Other than that, I'm happy with the way event.module is working.

Can anyone point me in the right direction?

Thanks!
Shawn

I second that...

syquest - August 31, 2006 - 21:34

I would also appreciate some advice concerning shawn's questions above.

One way to do this is to

alanburke - August 31, 2006 - 22:43

One way to do this is to overide theme functions found in the event.theme files.

Basically, this will involve a little knowledge of HTML, and possibly php, but its basically a cut'n'paste job.

The event.theme file should be in the event folder.
See
http://drupal.org/node/81362
for a similar problem I solved.

This page
http://drupal.org/node/11811

also explains how to override theme, in a slighltly different [a possibly more correct ] fashion

The same logic applies to your problem, you may have to override a few different theme functions.

Best of Luck
Alan

Another pointer

alanburke - September 1, 2006 - 08:42
 
 

Drupal is a registered trademark of Dries Buytaert.