Active
Project:
Timeline
Version:
7.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Jan 2013 at 23:14 UTC
Updated:
24 Jul 2013 at 14:45 UTC
1. In plugins/date_sources I changed:
'field_type' => 'date' to 'field_type' => 'datetime'
in date_field.inc and post_date.inc.
2. I did not use the svn repository. I used the git repository here:
https://github.com/xamanu/SIMILE-Timeline-libraries
Change #1 let me select a starting date field in views.
Change #2 made the JQuery is not an object errors go away, and now the timeline works and loads.
My field type in the content type is Date. My formatter in the View is Short. I don't have date ranges and I used the same field for both start date and end date.
* * *
These suggestions are scattered through the threads here so I thought I would consolidate them in one comment.
Comments
Comment #0.0
shunting commentedRevised wording for clarity
Comment #1
raiatea commentedIt is working basically here with the configuration:
Drupal: drupal-7.20
Drupal module: timeline-7.x-3.x-dev.tar.gz
SIMILE library: timeline_libraries_v2.3.0.zip
1) views ui
plugins/date_sources/date_field.inc, post_date.inc
line 12:
'date'=>'datetime'2) scrambled display
timeline.admin.inc:
line 58:
<div class="status">=><div>3) typos
includes/TimelineEvent.class.inc:
line 105:
'value2'=>'value'line 128:
'latetEnd'=>'latestEnd'4) main and summary band interval unit widths are not correctly initialized
js/timeline.js:
line 34:
band2_unit_width=>band1_unit_widthline 53:
intervalPixels: 200,=> deleteComment #2
Carlos Miranda Levy commentedDid the above and it works :p
Comment #3
spyderpie commentedI am unable to get timeline to work as well and although I could follow the instructions above ... I am uncomfortable changing code that would get overridden easily with an update .... anyone know if these fixes will be addressed in future updates?
:) love and light
Comment #4
gregory_kapustin commentedSolution [#1] worked for me except for
I had to keep
line 105: 'value2'
for this to work. Btw, I'm using same date field with beginning and end, it might have to do with that.
Thanks guys !
Comment #5
vickytnz commentedAnd some extra information for those of us messing around with figuring it out:
Rename the libraries file from google code to simile_timeline, and leave the two folders within it.
Comment #6
teunis commentedA possible solution :
if (!empty($value['value2'])) $value = $value['value2']; else $value = $value['value'];
Comment #7
TarKHaoS commentedIt took me some time to figure out how to make the module find my local version of the simile JS library.
vickytnz just wrote it: place the "timeline_js" and "timeline_ajax" folders in a "simile_timeline" folder under your /libraries/ folder. (usually under /sites/all/libraries)
Comment #7.0
TarKHaoS commentedAdded date material