Skip to content

Provides a few useful paragraph types such as accordions, heros, and cards.

License

Notifications You must be signed in to change notification settings

backdrop-contrib/paragraphs_aplenty

Repository files navigation

Paragraphs Aplenty

Provides several useful Paragraph types, including accordions, Hero blocks, cards, grids of columns, headings with optional anchors, media blocks, image, and simple text paragraph.

After installation, feel free to alter the Paragraph types by adding fields, and altering fields. You can also customize templates by copying them from the module and placing in your theme. However, try not to remove the default fields.

Sub-modules

Paragraphs Aplenty Gallery provides a Gallery paragraphs type that uses the Colorbox module to provide a way to scroll through a group of images.

Paragraphs Aplenty Quicktabs provides a Quicktabs paragraphs type that uses the Quicktabs module to provide a way to display a collection of tabs.

Install

Install this module using the official Backdrop CMS instructions.

Custom Grid classes

By default, the multi-column paragraphs type use the CSS Grid from the Bootstrap project. This can be customized by setting the grid class prefix (default: g-col) and breakpoint (default: md) in the settings file. For example, to use the default grid layout classes from core:

$settings['paragraphs_aplenty_grid_class_prefix'] = 'col';
$settings['paragraphs_aplenty_grid_breakpoint'] = 'lg';

If switching to core's grid, you'll need to also add the following to your theme's css so that column classes will work properly:

.paragraphs-item .row {
  display: flex;
  margin-right: -0.9375rem;
  margin-left: -0.9375rem;
}

The breakpoint can be changed too. The module uses a simple format of using only one breakpoint md at 48em. When the viewport is 48em or wider it will be the chosen number of columns; narrower it will be 1 column.

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

Current Maintainers

Credit

Adapted from USWDS Paragraphs, which was developed and maintained by brockfanning, daniel_j, fskreuz, and jrglasgow. And inspired by Paragraphs pack.