Excellent project. I immediately wanted a way of creating multiple timelines in a system using this. I've included this feature package of what I built but basically it's a custom content type (timeline) with an entity reference to timeline_date. So you create all your time points, then associate them to a single timeline via the content type. It comes with an EVA (entity views attachment) that then renders a views timeline js view on the timeline content type, limiting display to those items that were referenced in the type.

Posting here as I think this is useful to this project and could be merged in rather easily as a sub-feature. If not, just let me know and I'll re-name-space it to match the distribution I'm going to use it in. thanks!

Modules you'll need to use this
drupal.org/project/entityreference_dynamicselect_widget
http://drupal.org/project/entityreference
http://drupal.org/project/eva

CommentFileSizeAuthor
timeline_type.zip8.69 KBbtopro
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

operinko’s picture

I would rather not add dependencies to the main module that are not strictly required for basic usage, but those could certainly warrant their own separate module if not a sub-module.

btopro’s picture

completely agree so I bundled this as a sub-feature / module. I'd be happy to place it in contrib as its own project if the maintainers would prefer. As I mention it's for at least 1 distro I'm building and figure it's generally reusable.

asb’s picture

Issue summary: View changes

The feature appears to have additional dependencies:

  • strongarm
  • entityreference_dynamicselect_widget

From the description above I can not quite figure out what this additional feature requires. Does it sit on top of views_timelinejs_feature, or is it an alternative to views_timelinejs_feature? Is it supposed to render a views timeline js view on the 'timeline' content type, or on 'timeline_date' content type?

However, I can not figure out how to make this work :-(

btopro’s picture

This creates a timeline content type, so you create your dates / data points. Then you create a timeline, which is just an assembly of which dates to use. Then, using EVA a view that filters contextually to the timeline points referenced is generated and attached to the timeline content type. This allows you to create specific / multiple timelines instead of the default views_timelinejs which is 1 big view of all data points.

We've been using this for demonstration purposes in house, have included it in the ICOR distribution, and will be rolling it out into production within the next 6 months.

WorldFallz’s picture

Status: Active » Closed (won't fix)

I think this is pretty well outside the scope of this module though it sounds very cool-- too many moving parts and dependencies.

If you did/do spin it off into a separate module, be sure to link to it here!

btopro’s picture

Sounds good; I created a project for it and the BCE date support that we fudge into it too

https://www.drupal.org/project/views_timelinejs_extras