Installed but not able to get it to show data
harriska2 - June 19, 2007 - 20:27
| Project: | Timeline |
| Version: | 5.x-1.x-dev |
| Component: | Configuration |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I know I'm doing something bone-headed. I have Drupal 5.1 installed with Date module (1.5), cck (1.5) and views (1.5).
Here's what I did:
1. Created a CCK type with a bunch of fields that included a CCK date type with a begin and end date.
2. Added some data
3. Created the view using timeline horizontal (and even tried vertical). I added the node title and field_date (CCK date type) fields. Then I added a filter for Node: Type Is One Of
4. Tested the created view but the test data do not show.
I'm not using the event module even though it is loaded.
Any suggestions?

#1
Hi,
Could you try setting the view to another type, list or table, just to see if you get any results?
Also, does the page throw any javascript errors?
#2
Thanks for the trouble-shooting tips. I copied the view, renamed it, and made it a table. It words fine:
http://teachernotes.org/lesson_sequencer2
Here is the view with timeline:
http://teachernotes.org/lesson_sequencer
I have firebug working and it checks out OK with the little green check. I clicked around on firebug and don't see anything wrong.
#3
Hello,
first of all, thanks for this module ! A simple way to use the Simile project is a very good thing.
I have a similar issue as the one above : No data is being shown.
Here is what I get with the "nodes timeline" view :
http://www.shadows.fr/timeline/nodes
Not quite what I expected. ;-)
Here is the source code :
<div class='view view-timeline-nodes'><div class='view-content view-content-timeline-nodes'><div class="timeline-wrapper"><div id="timeline_nodes" class="timeline" style="width: 100%; height: 400px"></div></div><script type="text/javascript">if (Drupal.jsEnabled) { $(document).ready(function() { createTimelineWidget("timeline_nodes", Timeline.HORIZONTAL, "Wed Jul 11 2007 15:00:02 GMT+0200", 0, [ Timeline.DateTime.DAY, Timeline.DateTime.MONTH ], "/timeline/json?view=timeline_nodes", "json"); }); }</script></div><div class='view-footer view-footer-timeline-nodes'><p>Drag timeline forward or backward to see more content.</p></div>
</div>
I have the same issue if I use a bloc instead of a page. I also tried to change the date feed type, but I still have the issue.
The widget url is the default adress : sites/all/modules/timeline/api/timeline-api.js
Any idea of what could be wrong ?
EDIT : IE seems to find an issue in the page : see screenshot attached
#4
The issue seems to be related to the timeline-api.js file : if I set the "Widget URL" to http://simile.mit.edu/timeline/api/timeline-api.js, everything is ok.
But if I used the file I host, http://www.shadows.fr/sites/all/modules/timeline/api/timeline-api.js , nothing is shown.
The weird thing is, both files really seem to be the same... Any idea?
#5
be shure that you have grapped the 1.2 version of "timeline".
svn-checkout: http://simile.mit.edu/repository/timeline/tags/1.2/
The trunk-version of "timeline" is 2.x.
perhabs that could solve your problem?!
#6
Thanks for your help, I will try this and see if it can be helpful !
#7
It works !
Actually I'm not sure about what the issue was... It seems that updating to drupal 5.10 might have helped too (? again, not sure of what I did, I tried to tweak several parameters in timelines too).
Thanks ! ;-)
#8
I ran into this same problem. I think the issue is .htaccess, and the inability of the module to grab the .js source code from the site/all/modules path. If I move the "api" directory up into the Drupal root directory (and then redirect the Widget URL as such), it works fine.
By the way, it is important to use the 1.2 version of Timeline. The latest 2.x version on the MIT website doesn't seem to work with this version of the Drupal Timeline module.
#9
Just thought I'd share this tip, for anyone who's pulling their hair out trying to figure out why things don't work: Be sure to check the permissions on your files. In particular, timeline.js and timeline.css. The same goes for the api directory and the subdirectories and files in api/, including timeline-api.js.
When in doubt, see if you can access timeline-api.js via your Web browser by typing in the full URL for it. Use the path that you provided to the timeline module in the advanced settings. For example:
http://(www.your-site-name-here.com)/sites/all/modules/timeline/api/timeline-api.js
#10
Thanks for the tip, I will check this asap on my own website !
#11
@harriska2 Have any of the tips in this thread helped, or does your timeline still refuse to show?
#12
I've been out of the loop for a while. I'll try to check it in a couple of weeks when I upgrade everything.