Install
Works with Drupal: 7.xUsing Composer to manage Drupal site dependencies
Downloads
Release notes
The 3.x branches of the Views TimelineJS module were created to work with version 3 of the TimelineJS library, known as TimelineJS3. TimelineJS3 has several enhancements over the previous version and the module has been updated to take advantage of a number of them. Additional fields and settings may be added in future versions. If you would like to see one of these features added, then please post a comment in this issue.
Because of changes to the plugin field mappings, existing views will not continue to work correctly if you upgrade the module. If you decide to upgrade, make certain that you test on a development environment first and update the view's settings to account for these changes.
Changes since 7.x-1.0-beta:
- The dependency on the Libraries API module has been removed.
- The TimelineJS library may be served from the Knightlab CDN or from local files. Please read the installation instructions in the README file if you want to serve the files locally.
- A module settings form has been added at /admin/config/development/views_timelinejs where you can change how you want to serve the library.
- The views plugin settings form has been rearranged to organize the settings into new groups:
- TimelineJS Options: Contains timeline presentation options that are documented here.
- Additional Options: Contains other options for controlling the timeline, including any that are created exclusively by this plugin.
- Field Mappings: Contains options for mapping Views fields to timeline object properties.
- Restrictions on the types of Drupal fields that may be mapped to timeline fields have been removed. Any field may be used for any mapping, but that means it's your job to ensure that the field's output matches the timeline property's expected data type. See the README file's section on Field Configuration for more information.
- The Start and End Date field mapping has been split into separate Start Date and End Date mappings.
- The Tag field mapping has been renamed to Group, matching the change in TimelineJS3.
- New mappings for the Display Date, Background Image, Type, and Unique ID have been added.
- The ability to create a Title Slide and Eras have been added. Use the Type field mapping to specify the type of entity. See the README file's section on Field Configuration for more information.
- API functions for modifying the view's rendered output have been removed in favor of a more object-oriented approach. Plugin functions have been made far more granular in responsibility for easier overriding by a child class.
- Additional types of media are supported by the new version of TimelineJS and the plugin supports them all. Read the media documentation for more information.
- The output of date fields must match a PHP supported date and time format in order to be processed by the plugin. Events and eras whose date fields cannot be processed will not be displayed.
- The extra sources submodule has been removed. It is no longer necessary since any field may be used for any mapping.
- The example feature module has been removed.