Synopsis

The Story module leverages Paragraphs module and allows you to easily create a single page "story" that you can add chapters to. Chapters can contain the content of any paragraph types you have configured on your site. Each story has a jump menu with links to each chapter and smooth scrolling. This jump menu is automatically generated and can be configured to display to either the right or left of the chapters and their content.

Active highlighting of jump menu links happens upon clicking a link and when the corresponding chapter is brought into the view port by scrolling.

Each chapter has an optional Transition setting. Selecting a transition style (e.g., Fade Left, Zoom Out) adds that transition animation to the chapter. The animations are triggered by scrolling through the story.

You can add a Story entity reference (paragraphs) field to any content type on your site. Technically, you can add it to any entity on your site, but it is only recommended for Content Types (nodes).

Requirements

  • Drupal 8
  • Paragraphs module

Dependencies

Installation

Run composer require drupal/story

Configuration

  1. Go to Extend>Install new module and enable the Story module
  2. Go to Structure>Content Types>[your content type]>Manage fields and add a new field of type Entity revisions, Paragraphs.
  3. On the Field Settings form, Set to Limited = 1.
  4. On the Field Edit form, select Include the selected below and select only Story (you don't need to select Chapter because it is already a child paragraph of Story).
  5. Click on the Manage form display, and adjust your form display, placing the field where you want it.
  6. Save your changes.
  7. Click on the Manage display tab and add the field where you would like it. Set the Label to hidden.
  8. Save your changes.
  9. If you already have other Paragraph types configured on your site, you're ready to start creating Story content.
  10. If you don't yet have other Paragraph types configured, you will need to set up at least one to start creating Story content.

Try a Demo

A demo of the Story module can be found on SimplyTest.me.

Supporting organizations: 
Sponsors Development

Project information

Releases