Hello. I can't stop talking about how I love H5P. Today, I discovered the timeline feature, which works a million times better than the other options I am considering. Here's the thing: I am working with prehistoric dates, and would like to know whether you have already incorporated these features--and if not, please do:

1) When I entered "-1800" as a date, H5P correctly added the label BC--except some of us do not use that notation, we use BCE (Before the Common Era and CE (Common Era). Is there an option for BCE that I didn't notice? And if there isn't, is that something I can jimmyrig?

2) That same date 3800 years ago--it's approximate. To show that, I need to indicate "Circa" 1800 BCE or "Ca." 1800 BCE. Is this an option?

Thank you!

Supporter votes Members of the Supporter Network can vote for feature requests. When the supporter network has generated sufficient funding for the top voted feature request it will normally be implemented and released. More about the H5P Supporter Network
otacke's picture

Hi ronaki!

Timeline is just a wrapper of an old version of  Knightlab's Timeline (https://timeline.knightlab.com/), and the BC string is hardcoded into it, unfortunately. I am not sure if a later version of Knightlab's Timeline allows to configure that, but definitely, someone would have to change some of the code.



papi Jo's picture

I concur with Oliver; the main bulk of Timeline is produced by https://timeline.knightlab.com, not by H5P itself. I will try to contact them to suggest including your 2 new required features, or at least the first one in a further version of their code.

In the meantime, I have hacked H5P timeline to replace BC with BCE thanks to a small hack in the libraries of the attached example. Feel free to use, at own risk. You can view and download this hacked version on my drupal7 test site here: http://localhost/drupal7dv/node/159

Please note that if you download (re-use) and upload it to your website, the official libraries of H5P Timeline will by updated with the new libraries versions. I've attached a screenshot of the content (using the H5P Strawberries history example).

papi Jo's picture

Just found this https://knightlab.zendesk.com/hc/en-us/articles/218289103?input_string=t...

It might be a better solution. I'll have a look and report.

papi Jo's picture

It's really time the H5P Timeline content used the current TimeLine version 3, instead of the old (deprecated) version 2. I hope the H5P core team will find the time to do so.

I almost finish updating the library, will do a PR.

papi Jo's picture

Great! Looking forward to your PR. Please update this discussion when done.

Merci beaucoup !

I have created the pull request here : https://github.com/h5p/h5p-timeline/pull/54

Here the h5p library files if you want to try it on your server / on lumi

Also this new version add a link to the timelinejs project. I don't know if this link should (can ?) be hidden.

H5P file: 
papi Jo's picture

Thanks, it works. I will continue testing.

Hello! If anyone is working on this, it might be worth looking into the issue of images/media. At the moment, only Twitter, YouTube, Flickr, Vimeo, Wikipedia, GoogleMaps and Soundcloud are possible sources, which is very limiting. Any chance of this changing? /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Normale Tabelle"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";}

I love the responsiveness, I love the tech talk, but I got lost. I see you found two ways to access BCE and that the 2nd way is better and there's a pull to it on Github. What does this mean? Is it something H5P is working on and will release, in time? Is it available to me right now, and if so how? I am familiar with pulling on Github, but do not know any of the rest of the process (pull to where, then do what, and does it get overwritten if I don't protect it, etc.)


Hello, sorry if you're getting this twice. Earlier this evening I added a comment, but do not see it now--and therefore you may not see it either. I thank the team for finding a solution to displaying BCE/CE on a timeline. I do not understand how to do it. I've used GitHub before, but am not a dev. Please tell me what to do. Thanks a million.

For now this is just a pull request to update to the new version of timelinejs (the library used to display the timeline). It first have to be accepted by the h5p team before being avaible to you.

By itself, this doesn't allow you to do what you want. But this new version allow to add custom date text. So it could be possible to do what you want. However this need to be coded (by anyone who want to code it), and it's best to wait for the h5p team to first accept the update to the new version before someone start coding what you want.

--sit tight and wait for H5P to deliver an updated plugin? Because if that's what you are saying, that's just fine, and I am happy to do so. Thanks for the quick reply today!

Hi everybody, I've been working with H5P only for some days during my semester final work for one course. And it is great and there are a lot of possibilities. But we would like to combine timeline with another tool. The best way for us would be the combining of timeline with documentation tool and questionnaire. We would like to use the input of the user to show him/her on which point of a defined timeline he/she now is. Is there any possibility? And how can we do this? Do you need more information? Thanks a lot. Cheers Dana

BV52's picture

Hi DanaB,

I'm afraid this is not possible within a single content type. There are no complex content type that includes timelime and the main reason is that it was created by a developer who is not part of the H5P core team. Afaik Timeline is also not actively being developed. Having said this there is also very little chance that the core team will include Timeline in complex content types nor will they accept Pull requests for it. However it should be possible to "combine" Timeline and dcoumenation tool or questionnaire by placing them in a single page one after the other.


Okay, then. We will find some workarounds. Thanks for your answer!