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

jmiccolis - June 20, 2007 - 03:21

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

harriska2 - June 20, 2007 - 16:47

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

shadows44 - August 1, 2008 - 09:13

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

AttachmentSize
2008-08-01_111324.jpg37.33 KB

#4

shadows44 - August 2, 2008 - 02:13

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

intervalle - August 17, 2008 - 10:14

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

shadows44 - August 22, 2008 - 12:06

Thanks for your help, I will try this and see if it can be helpful !

#7

shadows44 - August 25, 2008 - 02:51

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

mgenovese - September 24, 2008 - 02:08

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

aasarava - September 29, 2008 - 23:01

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

shadows44 - October 6, 2008 - 18:13

Thanks for the tip, I will check this asap on my own website !

#11

jmiccolis - October 12, 2008 - 16:58

@harriska2 Have any of the tips in this thread helped, or does your timeline still refuse to show?

#12

harriska2 - November 10, 2008 - 04:54

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.

 
 

Drupal is a registered trademark of Dries Buytaert.