Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since Timeline seems dependent on Date API (despite the overview seeming to suggest otherwise), it inherits all the Date API limits for date ranges. I'd love to use Timeline on a current project which documents dates from 10,000BC to well into the future - in order to store such dates in Drupal I've had to decompose them into day/month/year integer fields, but Timeline seems insistent on using only Date API date fields.
Anyone else dealt with this?
Comments
Comment #1
xamanu CreditAttribution: xamanu commentedThere is an open issue on #602956: Implement supported fields as plugins. With this is should be relatively easy to write little plugins in order to support all kinds of input fields.
This should be done first and afterward it would be just a simple plugin to write in order to have support for any special field type.
Comment #2
dedalu CreditAttribution: dedalu commentedSame here... For historiographical content, BC dates are indispensable. Subscribing the request.
Comment #3
KrisBulman CreditAttribution: KrisBulman commentedsubscribing
Comment #4
KrisBulman CreditAttribution: KrisBulman commentedI notice that dates using CCK Date field do allow for back until 1BC (0001)..
Is it possible to enter the negative values to at least go back until 9999BC?
Comment #5
xamanu CreditAttribution: xamanu commentedPlease try before asking!
Actually, this would be an issue/question for the date module, not for timeline!
Answering your question: I'm not sure (I'm not the date module's maintainer), but I don't think it is possible. Better: Wait (or contribute in the process) till the plugins for supported fields are out and write your own plugin to support whatever you want.
Comment #6
KrisBulman CreditAttribution: KrisBulman commentedi have tried a few things such as negative values, but I'm just a user of drupal searching for answers after spending hours hacking at it, I'm not a developer.
thought there might be a known solution out there but I appreciate the reply.
Comment #7
rogerhoward CreditAttribution: rogerhoward commentedAt very least, shouldn't this comment in the module overview...
"It makes use of the Date module (if present) as source for temporal information defined on cck date fields of nodes."
... be fixed ince the Data module is actually required for Timeline (or I'd gladly use CCK text fields for my date values).
Would it instead be possible to get BCE support from Timeline by allowing the admin to use text fields (populated with date-like strings), avoiding Date API altogether (if that's the problem)?
Comment #8
xamanu CreditAttribution: xamanu commentedThe newest 3.x branch supports plugins based on ctools to be implemented by other (sub) modules. Please check it out to see how to implement support for any kind of data field.
Now you should be able to build a workaround with f.e. classical text fields to support any year spesification, even it wouldn't be supported by the date module. It would be nice if you could share your code here.
Thanks!
Comment #9
walwyn CreditAttribution: walwyn commentedsubscribing
Comment #10
polskikrol CreditAttribution: polskikrol commentedSubscribing.... Timeline used to work in version 2.x with cck date fields. Now it appears to only work with Node Date only.
Comment #11
chien_fu CreditAttribution: chien_fu commentedI would very much like to be able to add BC dates to my timelines as well.
Comment #12
Lakeside CreditAttribution: Lakeside commentedIt's sad to have to scrap the use of this outstanding module for my current project because it won't permit a BC date. What's particularly frustrating is that there is ONLY ONE BC date, which must be included in the timeline. Ugh!
Has anyone found a workaround with CTOOLS? Would you mind sharing how you did it?
Comment #13
xamanu CreditAttribution: xamanu commentedIt is now possible to provide new date sources, f.e. a normal text field, that could work, with some validation, to use historical - BC - dates, to the timeline module. This should it make a lot easier for you to get this (and other) functionalities programmed. I think here is "just" some documentation missing.
Please check the related issue on that: #602956: Implement supported fields as plugins
And help testing :-) Thanks.
Comment #14
Rocinant CreditAttribution: Rocinant commentedHi Xamanu, Thank you very much for your great work on the Timeline module! I am using it on a website on economic history. The webmaster wants to incorporate some BC dates in the timeline. I have downloaded the 6.x-3.x-dev version of the module and the CTools module. Although I am quite experienced in Drupal I do miss some documentation (albeit very basic) to continue working with the timeline. Would you be able to provide me with an outline on how to use the timeline with BC dates? Thanks in advance!
Comment #15
bomarmonk CreditAttribution: bomarmonk commentedRocinant, I'm wondering the same thing: it would be great to have some documentation of adding BC dates to a timeline. It sounds as though it's possible, but the path to success isn't clear to me.
Comment #16
kevin-bcr CreditAttribution: kevin-bcr commentedSubscribe. Would love to know how to use BCE dates, ideally back to 10,000 BCE. Kevin
Comment #17
Vacilando CreditAttribution: Vacilando commentedVery interested in how to do this in D7.
Comment #18
bomarmonk CreditAttribution: bomarmonk commentedI have BC dates working for Drupal 6 using the patches for date module here: http://drupal.org/node/273251. I just don't know how to get the field to accept negative numbers bigger than 9999 BC. Any help on altering the length of the date field in the database???
Comment #19
Carlos Miranda Levy CreditAttribution: Carlos Miranda Levy commentedTake a look at http://drupal.org/project/partial_date for Drupal 7 - handles from 999999999999BC to 999999999999AD