Is there a way to link to a specific date within a timeline?

We'd like to be able to provide a way to have an external link that calls up the page that the timeline is in, and provide a URL argument such that a specific event/date on the timeline opens. Is this possible? for example: https://h5p.org/timeline#Middle_ages would open your demo timeline to the Middle ages item.

Thanks for any help!

falcon's picture

Think you would have to do some coding to make that happen :/

Would it just be a matter of setting in some anchor tags, and then handling them on the GET? I've not delved into the code at all... any hints or tips as to where to begin? :)

falcon's picture

Timeline.js is third party code. I don't have any insight either :/ probably should look for clues on KnightLab's project page.

There is a way so I thought I'd respond so it's in your archives here if anyone else needs this -- each slide in the timeline is numbered by the order in which they are added, and can be reached directly by appending '#<slide_number>' to the timeline URL.

Thanks for your help!

falcon's picture

Great, thank you for sharing!