Skip to content

Instantly share code, notes, and snippets.

@mikedamoiseau
Last active August 26, 2020 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikedamoiseau/b64a3a7ce9ab7c5c02d28f3344b68f18 to your computer and use it in GitHub Desktop.
Save mikedamoiseau/b64a3a7ce9ab7c5c02d28f3344b68f18 to your computer and use it in GitHub Desktop.
Drupal 8 - Steps to create a new paragraph
  1. Create paragraphs
  2. People > Permissions
  • View content: "Gast" and "Angemeldete Benutzer" ("Guests" and "Authenticated users")
  1. Create Image style
  • S, M, L, L 2x Image Style Name S / Image Style Name M / Image Style Name L / Image Style Name L 2x
  1. Create Responsive Image Style
  • apply the breakpoints
  1. Add fields to the parent paragraph
  2. Manage form display
  • Parent paragraph:
    • if list of children paragraphs: "Paragraphs classic" + settings "Edit Mode: Closed" (for collapsable elements)
  • Child paragraph:
    • if Media: "Widget: Media Library" >
  1. Manage display (if a media field)
  • Format: "Responsive Media Image" > "Responsive image style: <THE ONE CREATED IN POINT 4."
  1. Translate the paragraphs and their fields: "Configuration" > "Regional and language" > ":"Content language and translation"
  • Check the box next to the newly created paragraphs
  • Parent: do NOT check the box next to the field of the children paragraphs
  1. Edit content type "Basic Page": "Manage Fields" > "Site Builder"
  • Check the box of the parent paragraph newly created
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment