Restricted Monthly Calendar by taxonomy term

jdy98p - September 1, 2007 - 02:54
Project:Event
Version:6.x-2.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed
Description

I would like to create a monthly calendar that does not show every event for every day. I need it show which days have specific types of events available based on taxonomy.

For example, if I have an event in the "Camping" category titled "Over night camping trip," I would like to see an indication of the "Camping" category, but not the event title (the link would lead to the "Camping" category page). Not only that, but if there are 5 "Camping" category events on one day, I would like to see just one event item in the monthly view calendar. Each category event would have it's own color code (i.e. Camping = blue, Backpacking = red, etc) so that with a quick look at the monthly calendar a user could see several weeks ahead what days had specific category events occurring. This would be VERY useful for a high event-posting site. Clicking on the color striped link should take the user to a list view of that specific day's events of that specific category.

Any ideas? Is it possible to use Views to do this, and if so, how?

#1

jdy98p - September 1, 2007 - 03:06

It would also be nice to set up the day number on the monthly calendar to link to a list view of that day's events (all categories).

#2

jdy98p - September 4, 2007 - 17:07

Any suggestions at all?

#3

DawnLight - September 4, 2007 - 21:31

I don't see a way of doing this without writing some code.

#4

jdy98p - June 4, 2008 - 21:01
Status:active» postponed

#5

HansBKK - October 2, 2008 - 04:46

I know this is ancient history, but I'm just starting to research these areas of Drupal (date/calendar handling and taxonomy)

Isn't this exactly what Date module + Calendar module + Views is designed to do out of the box?

Set up a CCK Date field to track whatever kind of date, set up a Calendar View based on that field, and then further filter that View based on Taxonomy?

If so, I'd appreciate someone confirming, and if not please let me (and others searching for solutions to this) know where to learn more about the current state of play on these issues.

Thanks in advance. . .

#6

trevorkjorlien - March 13, 2009 - 00:17

I'm also trying to do this, although it might be a bit more complex, but the concept is still the same.

I'm making an events system for a local newspaper, and they have listings for Arts, Special Events, and Music. Each one of those categories also has subcategories (Arts: Theatre, Dance, Literary... Music: Live, DJ, Classical... etc...)

Essentially, it would be cool if the user could click on the day they want to see an event, and have tabs to choose either Arts, Special Events, or Music. Then below *those* tabs, have the relevant terms related to that category.

I know I'm not providing any solutions here, but just want to get the gears in my brain rolling. So far I've set up Calendar + Date, with a CCK type called events, with taxonomy of Event with my categories, and then my subcategories.

If anybody has done something similar, let us know.

Thanks.

#7

krogroog - June 23, 2009 - 19:07

I need to do something similar - color each day in the sidebar calendar based on whether a certain CCK check-box field is enabled for any events on that day. I am thinking that a hackish way would be to override the calendar-mini.tpl.php that Views pulls from, and just do some querying right there (horrible, I know), and tack on a class name to the td specified here (starting on line 38 of calendar-mini.tpl.php):

        <?php foreach ($row as $cell): ?>

        <?php
                $specialclass
= /* do queries; return the class name if the special field is enabled */
       
?>


          <td id="<?php print $cell['id']; ?>" class="<?php print $cell['class']; ?> <?php print $specialclass; ?>">
            <?php print $cell['data']; ?>
          </td>
        <?php endforeach; ?>

#8

krogroog - June 23, 2009 - 22:11
Version:5.x-1.0» 6.x-2.x-dev

Okay, update: I nixed the special CCK field idea, and am using a single-term Taxonomy - seems more natural with the Legend functionality that's already there. Is there a way to get the color coding in the Block provided by the calendar view?

Thanks!

#9

killes@www.drop.org - July 4, 2009 - 21:58

The colour coding is in the event.css file. You can copy the file to your theme's directory and modify it. The module should pick up your event.css then.

 
 

Drupal is a registered trademark of Dries Buytaert.