Skip to content

Instantly share code, notes, and snippets.

@johnny5th
Last active October 11, 2017 20:44
Show Gist options
  • Save johnny5th/fde9345e3d885edc45cc4bcdc34a969b to your computer and use it in GitHub Desktop.
Save johnny5th/fde9345e3d885edc45cc4bcdc34a969b to your computer and use it in GitHub Desktop.

Drupal Site Building with Paragraphs

Table of Contents

  1. The problem with static-fielded CMS's
  2. Intro to Drupal
  3. Installation
  4. Entities
    1. Bundles
  5. Nodes
    1. Content Types
  6. Solving the problem - Paragraphs
    1. Paragraph Types
    2. Paragraph Node Field
    3. Dynamic templates based on fielded data in any order
  7. Wrapping up

The problem with static-fielded CMS's

  • Pre-defining all the layouts a client will need
  • Strict limitations of what is developed
  • Shoving everything in the body, or other predefined fields HTML in the body field

Intro to Drupal

  • Enterprise level open source content management system/framework
  • Built on top of Symfony components
  • Highly extendable
  • Can build a management system to suit the project needs
  • Massive community / module ecosystem

Installation

Entities

  • The building blocks of Drupal
  • Almost everything is an entity

Bundles

  • Bundles are sub-configurations of entities

Nodes

  • Nodes are special entities that create most of the pages on a Drupal site

Content Types

  • Node entity bundles are called Content Types
  • They allow the creation of structured data types to hold site information displayed as individual pages

Solving the problem - Paragraphs

Pages made from blocks Credit: CSS Tricks

  • Paragraphs gives a content writer the ability to create rich, dynamicly formatted page content without writing any HTML
  • Paragraphs provides a new Paragraph Reference field to embed small Paragraph entities within the node editor interface

Wrapping up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment