This recipe provides a set of custom paragraph types to be used with the Paragraphs module.
The "Highlight" paragraph type provides a way to feature a piece of content with an image, title, body text, and a link. It includes the following fields:
- Title (
field_mt_highlight_title): The title of the highlight. - Body (
field_mt_highlight_body): The main text content. - Image (
field_mt_highlight_image): An image to display with the highlight. - Image Fit (
field_mt_highlight_image_fit): Specifies how the image should fit within its container (e.g., "cover", "contain"). - Link (
field_mt_highlight_link): A URL for a call-to-action or more information.
-
This recipe requires the following modules to be enabled:
-
Apply the recipe using the following Drush command:
drush recipe ../recipes/contrib/extra_paragraphs
The paragraph types are automatically configured upon installation. You can
manage the fields and display settings for the "Highlight" paragraph type by
navigating to the "Paragraphs types" administration page
(/admin/structure/paragraphs_type).