How to start with Paragraphs for Drupal 7
You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules
Beginners guide for setting up Paragraphs module with Drupal 7.
Modules
Download and enable these modules:
- Paragraphs (Enable submodule 'paragraphs_bundle_permissions' as well)
- Entity API
Create a Paragraph Bundle
- Go to Structure->Paragraph Bundles (admin/structure/paragraphs) and click 'Add Paragraph Bundle'. (Alternatively you can navigate directly to admin/structure/paragraphs/add)
- Enter 'Content text' as Name, and click 'Save Paragraph bundle'
Add a field to a Paragraph Bundle
Example for adding a text field which can be used for adding content:
- Click 'manage fields'
- At 'Add new field'-> enter:
- Label: 'Text'
- Field type: 'Long text'
- and click the 'Save' button
- click 'Save field settings'
- at the bottom of that next page click 'Save settings'
Hide field labels
If you want to hide the label of the field you created from the page visitor:
- click on tab 'Manage display'
- Set the label of 'Text' to 'hidden' and click 'save'
Set permissions for your Paragraph Bundle
- Go to /admin/people/permissions
- Under "Paragraphs Bundle Permissions" set appropriate permissions for user roles to view, create, edit or delete your Paragraph Bundle
- Note that if you don't set at least one user role to be able to view the Bundle, it will be invisible to everyone on the front end, including administrator role
- Click 'Save permissions'
Add a Paragraphs field to your Content Type
Go to Structure->Content types (admin/structure/types)
- click 'manage fields' at the content type you want to add the Paragraph field to
- At 'Add new field' enter:
- Label: 'Paragraphs'
- Field type: 'Paragraphs'
- Leave widget on 'Embedded'
- and click the 'Save' button
- at 'Paragraphs field settings' set 'Number of values' to 'Unlimited'
- click 'Save settings'
Hide field labels
If you want to hide the label of the field you created from the front-end page visitor:
- click on tab 'Manage display'
- Set the label of 'Paragraphs' to 'hidden' and click 'save'
Result
The content editor of your Drupal site will now be able to add Paragraphs to the content type you selected.
The Paragraph content will display the same way as regular body content does after a default Drupal installation.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion