Paragraphs
Paragraphs allow editors to create pre-defined blocks of content to be added to pages around your LocalGov Drupal site.
Many paragraph types are available out of the box (including an accordion, contact details, document, image and video).
It's also easy to create a library of 'reusable paragraphs' - this allows you to change content once centrally, and all instances of the paragraph dotted around your site update automatically. This is ideal for contact details such as phone numbers and addresses of council venues.
Dev work in progress
Paragraphs are being overhauled as part of our 2025/ 2026 'Refresh' mission. This includes:
- removing references to 'Page Components' which has been used as an alterative name for this feature
- improving the UX for adding and editing paragraphs
- allowing pargraphs to be added to more places around your site
- tidying up the list of paragraphs and making it clear what each is used for. Over time some lesser used paragraphs may be deprecated
How to use
We'll add to this section once we've finished our review of the UX.
Paragraph types
Here's the complete list. Thanks to Big Blue Door for sharing this.
Accordion
Element that allows users to show and hide sections of content on a web page to save space and reduce scrolling A typical example of this would be an “FAQ” page.
Machine name
localgov_accordion
Fields
- Title
- Display show/ hide all (Yes/No)
- Allow multiple open panes (Yes/No)
- Heading level*
- Ability to add multiple panes, each with Title*, Heading level*, Description*
Accordion pane
A single accordion pane (one single expandable item). Unlikely to be used in isolation, it will be added as part of an Accordion
Machine name
localgov_accordion_pane
Fields
- Title*
- Heading level*
- Description*
Images of accordion and accordion pane
Banner primary
Wider width promotional block to promote a specific image, content or call to action
Machine name
localgov_banner_primary
Fields
- Image*
- Title*
- Text*
- Logo
- URL
Banner secondary
Banner image
Machine name
localgov_banner_secondary
Fields
- Image*
Block view
TBC: paragraph to add a listing (Drupal “View”)to a page (eg. events block, news listing etc)
Machine name
localgov_block_view
Fields
Block view / display
Box link
A button element which can be added with or without an image. Can be used on its own or as part of a “Box links listing”
Machine name
localgov_box_link
Fields
- Image
- Link / link text
- Open in a new window (Yes/No)
Box links listing
A grid / listing of buttons, each with or without an image
Machine name
localgov_box_links_listing
Fields
- Title
- Heading level
- Box listing theme (Grid / Boxes)
- Ability to add multiple box links, each with Image, Link / link text, Open in a new window (Yes/No)
Image of Box link and Box links listing
Machine name
Fields