Component-based Development
  • Welcome!
  • What you will build
  • Chapter 1
    • Local Setup
  • Chapter 2
    • Drupal theme and Front-End Tools
  • Chapter 3
    • Components architecture
    • Best practices
    • Drupal attributes
    • Twig embeds
  • Chapter 4
    • Building Components
      • Eyebrow
      • Heading
      • Button
      • Components Variations
      • Movie Card
      • Drupal Libraries
      • Featured Movie
      • Movie Card Collection
      • Movie List
      • Other components
  • Chapter 5
    • Building the back-end
      • Taxonomy
      • Image Styles
      • Content Types
      • View
      • Paragraph Type
  • Chapter 6
    • Integrating components
      • Movie Card
      • Featured Movie
      • Movie Card Collection
      • Movie List
      • Movie full display
  • Chapter 7
    • Resources
Powered by GitBook
On this page

Was this helpful?

  1. Chapter 5
  2. Building the back-end

Paragraph Type

To create the list of movies for each category we will use a paragraph type. The movie collection will in fact be a collection of paragraphs.

Using the table below, create a new paragraph type called Movie Genre List.

Label

Machine name

Movie Genre List

genre_list

Add the following fields and settings to the paragraph type:

Field label

Machine name

Field type

List title

field_list_title

Text (Plain)

Movie list view

field_movie_list

Views Reference

For the Movie list view field, set the following configuration:

Type to reference

Default Value

View Display

Preselect view option

View

Movie List view, List via Term ID

Block

Movie list

PreviousViewNextIntegrating components

Last updated 6 years ago

Was this helpful?