Color coding based on taxonomy or content type

bomarmonk - February 21, 2007 - 16:55
Project:Timeline
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

This may be difficult to implement, but it would be wonderful if you could color-code items on the timeline based on taxonomy. In addition, different content types could be represented with different colors (based simply on node-type-- this could already be in place but I didn't see documentation for it). Maybe these options could be configured separately within the settings for each timeline.

#1

Arto - April 8, 2007 - 23:09
Title:Color coding» Color coding based on taxonomy or content type

Chad, this could indeed be a useful feature. Unfortunately, I don't personally have the possibility to tackle it in the foreseeable future - perhaps one of the other developers could be interested? Leaving this open, patches welcome.

Note that it could make sense to implement #104890 and this at the same time, given that different content types might be represented by different icons.

#2

JohnG - April 12, 2007 - 08:35

+1 good idea

#3

recidive - October 30, 2007 - 11:06
Version:HEAD» 5.x-1.x-dev
Status:active» needs review

I've roughed a patch that implements this feature. The patch is kinda hackish and needs improvement.

To test this you need to:

  1. Add an additional field to the view you want to 'group' events by, e.g. 'Node: Type', 'Taxonomy: All Terms' or 'Og: Group names'.
  2. Go to the timeline settings page and choose the field you want to 'group' events by. There is a new section 'Group by'.

Currently colors are limited to 16.

Ideas to improve the patch are welcome :)

AttachmentSize
timeline_colors.patch.txt 6.67 KB

#4

Robert Castelo - January 1, 2008 - 08:46

I've tested the patch by recidive and it works well. Very, very useful feature - recommend to commit it as soon as possible.

#5

spython - January 14, 2008 - 18:52

This is great!
Does somebody know how to use different bullets for "instant" events? I want them to look similar to events with different start/end date.

#6

bomarmonk - March 28, 2008 - 07:46

Any chance of getting this committed? This looks great. Any problems with the patch?

#7

caillou - August 27, 2008 - 14:18

Thank you for the patch. It works well for me !

Is it possible to attach one color with one term, and then make a legend ?

#8

spython - November 14, 2008 - 00:23

Would be nice if someone could implement the same functionality for drupal 6 version.

#9

emersonlenon - December 8, 2008 - 23:34

The calendar module for views does this color coding and legend thing already, may be that would provide an easy method?

#10

xamanu - August 18, 2009 - 03:20
Version:5.x-1.x-dev» 6.x-2.x-dev
Status:needs review» fixed

This feature has been added to the 2.x version of the timeline module by using views "group by" option.

#11

System Message - September 1, 2009 - 03:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.