Paragraphs library
The Paragraph library is a custom module added to NHM's Drupal instance. It allows for the creation of Paragraph types (i.e. Callouts, WYSIWYGs, etc.) that can be reused across pages.
To access the Paragraphs Library, go to Content > Paragraphs in the Drupal admin menu.
Alternatively you can navigate to /admin/content/paragraphs
(i.e. nhm.org/admin/content/paragraphs)
Adding a new paragraph to the library
Navigate to the Paragraphs library
Content > Paragraphs or go to /admin/content/paragraphs
.
Click the "+ Add library Items" button
You'll see the button the in the top right of the Paragraphs library page.
You can also navigate to admin/content/paragraphs/add/default
.
Fill out the form
- Paragraphs Title: Required field used as a title in the Paragraphs library. It does not affect the content of the created paragraphs item.
You can choose which paragraph type to create from the dropdown menu.
Fill out the paragraph type form
Fill out the required fields for the chosen paragraph type.
Click "Save"
Add a reusable paragraph to a page
Available paragraphs are limited to the paragraph types that are available on a specific content type. For example, you cannot add callouts to Event pages, as they are not allowed on that content type.
Adding a paragraph from the Paragraphs library to a page is similar to adding any paragraph to a page's content.
In the same dropdown normally used to add a paragraph, you'll see a new option called "Add Reusable Paragraphs" (see below).
Click, Add existing Paragraphs library item > Select reusable paragraph. You'll then be presented with paragraphs from the library to choose from.