Drupal: Enable and Use Paragraphs

Paragraphs is a module in Drupal. It is included in the University's Enterprise Drupal 8. From Drupal.org's Paragraphs overview page:

Paragraphs is the new way of content creation!
It allows you Site Builders to make things cleaner so that you can give more editing power to your end-users.

Instead of putting all their content in one WYSIWYG body field including images and videos, end-users can now choose on-the-fly between pre-defined Paragraph Types independent from one another. Paragraph Types can be anything you want from a simple text block or image to a complex and configurable slideshow.

Enable the Paragraph module(s)

  1. Log in to your Drupal 8 site
  2. Click Extend in the Administration Menu
  3. Scroll down to the Paragraphs section
  4. Enable
    1. Paragraphs
  5. Click Install
  6. Click Continue to enable all dependencies

Create a Paragraph Type

A paragraph type can be something as simple as a single text field, or something complex like an image gallery.

  1. Go to the Administration Menu and click on Structure and Paragraphs types
    • From this page, you can create new paragraph types and manage existing ones.
  2. Click Add a Paragraphs type
  3. Enter a name into the Label
  4. Click Save. Now you should be back on the Paragraphs types page and should see the new Content paragraph type you just created.
    • If you click on the Edit button down arrow in the Operations column, you should see a bunch of options including Manage fields and Manage displays.
  5. Click Manage fields to add fields to the paragraph type.
  6. Click Manage form display to configure the field widget.
  7. Click on the Manage display tab to configure how the paragraph will be displayed.

Add a Paragraph Field to a Content Type

  1. Go to the Administration Menu and click on Structure and Content types
  2. Click Manage fields for a content type
  3. Click Add field
  4. Select Paragraphs from the Add a new field drop-down. Enter in Paragraphs into the Label field
  5. Click Save and continue
  6. Click Save field settings for Field settings
  7. Click Save settings for Edit
  8. Click on the Manage form display tab
  9. Click on the cogwheel on the Paragraph field row
  10. Change the Paragraph Title, Edit mode, Add mode etc.
  11. Click Update

Create Content With Paragraphs

  1. Go to Content, Add content and click on the content type you added Paragraphs to.
  2. Enter a title and scroll down to the Paragraph field
  3. Click the down arrow and select the paragraph type you added
  4. Enter content in the paragraph fields
  5. Scroll to the bottom and click on Save


Last modified