Custom template regions are typically added to themes to display blocks selectively on a page. Timeline block only displays itself when either in the left or right "sidebar" or "footer" regions but not when in "header", "content" or any other custom template region. The block header and any custom text configured in the block view do show in all the template regions, but the timeline widget does not load in all but two (either as JSON or XML).

This behavior has been reproduced in three different themes (bluebreeze, garland & multiflex3) and both when running from a local (SVN) or remote widget code.
The site is running DRUPAL-5 CVS code including for the timeline module which is installed at sites/all/modules (as suggested in an earlier workaround to allow local timeline widget code to be used).

Firebug Console Error when block does not show in a certain region:

createTimelineWidget is not defined xxx.xxx.xxx.xxx  (line 81)
(no name)() 
e()
 <div class='view view-timeline-events'><div class='view-content view-content-timeline-events'><div class="timeline-wrapper"><div id="timeline_events" class="timeline" style="width: 100%; height: 100px"></div></div><script type="text/javascript">if (Drupal.jsEnabled) { $(document).ready(function() { createTimelineWidget("timeline_events", Timeline.HORIZONTAL, "Mon Jun 16 2008 10:57:29 GMT-0700", 0, [ Timeline.DateTime.WEEK, Timeline.DateTime.MONTH ], "/timeline/xml?view=timeline_events", "xml"); }); }</script></div><div class='view-footer view-footer-timeline-events'><p>Event Timeline: 1) DRAG window to move dates. 2) Doubleclick to center a region. 3) Click title for summary.</p> 

Module Code versions: (CVS Entries)
/timeline.info/1.2.2.2
/timeline.install/1.1.2.2.2.1
/timeline.views.inc/1.1.2.2.2.1
/timeline.js/1.1.2.7.2.1
/timeline.module/1.3.2.7.2.8
/timeline.theme.inc/1.1.2.8.2.4
/timeline.css/1.1.2.3

Local Widget Code SVN version
http://simile.mit.edu/repository/timeline/tags/1.2/src/webapp/api/

Comments

ajzz’s picture

Category: bug » support

Changed category to support request. Hope someone can help me with a workaround to enable Timelines for content and header regions.

xamanu’s picture

Version: 5.x-1.x-dev » 6.x-2.0-beta1
Category: support » bug
Status: Active » Fixed

Has been fixed.

Status: Fixed » Closed (fixed)

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