Arto,
First of all, thank you for the big job in this module, it's a big add-on that was missing.
According to that thread http://drupal.org/node/92901 It seems that timeline doesn't play well with CCK date field.
In my case I have setted up a new node type to print project on a Gantt diagram like using the timeline module. I put two date fields in a new CCK node type, one field for the start date the second for the end. But I fallen to manage to get timeline module take them into account.
Is timeline module supposed to work only with event module or creation date of a node or should it also work with CCK date field ? If the last case is true, do you have any idea of what's going wrong ?
Thank you, regards,
Eric
Comments
Comment #1
Arto commentedComment #2
nickbits commentedHi All,
I can confirm this is creating issues. Not sure if this will help to sort the issue, I create a new node type using CCK. The node type has:
- A title
- A description
- A start date
- An end date
I then setup the timeline view so that the last two fields correspond to the start and end date in the view as stated in the instructions. I have also filtered the view so only this node type is used. However, the timeline only displays the date the node was created and not the dates entered. I have tried the two fields as both a date and a stamp with no luck.
Nick
Comment #3
MrTaco commentedhere's a replacement timeline_data function that fixes that problem
Comment #4
Arto commentedThanks for the fix, John. I will apply it to CVS as soon as I get a chance to review it. (If at all possible, please submit fixes in patch file format, since that makes seeing the actual changes a lot easier and speeds up integrating the fix.)
Comment #5
Arto commentedCCK compatibility implemented in CVS commit [47570], and successfully tested with Views 4.7.x-1.2, CCK 4.7.x-1.0, Date 4.7.x-1.0 and Event 4.7.x-1.x-dev.
Use the first and second fields in the view for the start/end dates, respectively, and if you add a third field, too, then that will be used for the timeline event's title.
Comment #6
fm commentedJohn, I upgraded to php5 and swapped in your code. After some cursory tests, it seems to work like a charm. Thanks!
Next, I'm going to try to install the ADOdb Date Library and see if I can't roll the date range back to 100 AD.
Comment #7
fm commentedOops, accidentally changed issue title. Changing it back herewith.
Comment #8
Arto commentedPete, there is no need to swap in John's code - his fix has been integrated into the official version of the module Timeline for a while now. Just grab release 4.7.x-1.0.
Comment #9
(not verified) commented