Provides a new page type in wagtail that allows authors to add content to several newely defined block types within streamfield.
Each longform page created produces both a page that depends on JavaScript, and, a Printable, Accessible, JavaScript-less, lightweight page.
- An instance of Wagtail
- Blocktype definitions for streamfield
- Templates, compiled CSS and JS to render both resulting pages
- The
title
,introduction
andbackground image
make up the Coverblock - The
menu links
populate the primary navigation - The
related page
is added to the Footerblock as a link using thetitle
andintroduction
properties from the linked page - Within the
body
an author will need to create achapter
providing it with atitle
, each chapter populates the chapter navigation present on desktop resolutions upwards - After creating a
chapter
users can then chose thesection
style they would like to use
If you would like to make modifications to the templates;
- Browse the templates directory and modify the corresponding template
If you would like to adjust the CSS and/or JS;
- Ensure you have node 4.x or higher (we recommend sticking to LTS releases to ensure module compatibility)
- Install dependancies, navigate to the
/longform
directory and runnpm install
- Build and watch source directories with
npm run dev