Jan Chojnacki
Exove
Creating Landing Pages for
Drupal 8
Tallinn, November 2, 2018
THANKS!
THANKS!
What is a Landing page?
• Particular target audience
• Emphasized Call to Actions
• Custom layout and complex internal
structure
• Personalized blocks
Planning
Possibility to create Multiple landing pages
Possibility to easily change the layout
Providing stability by adding limitations in
the admin interface
Human curated or aggregated by Drupal
content
Re-usable elements
.large-6
.large-7 .large-5
.large-7
.large-8
.large-4
HEADER
CONTENT
FOOTER
Paragraphs
Paragraphs
• Structured "chunks of content"
• Allows content editors to choose from
pre-defined list of paragraph types
• Content editor can reorder paragraphs
• Examples: Accordion, Tabs, Galleries,
Slideshow, Simple text
https://www.drupal.org/project/paragraphs
Use case examples:
• Add a block of text with an image left to it
• Add an accordion between blocks of text
Paragraph types
.large-6
.large-7 .large-5
.large-7
.large-8
.large-4
HEADER
CONTENT
FOOTER
Paragraphs for layout
Column
• Reference to "elements"
paragraphs
Section
• Reference to column
• Background color
• Column style
50%-50% 60%-40% 40%-60%
Paragraphs
GOOD
• Flexible
• Revision-friendly
• Large support of the
community
BAD
• Not reusable
• Asymmetric translations are
only supported with
additional module
• Naming :)
Entity Construction Kit
+
Inline Entity form
Entity Construction Kit (ECK)
User Interface for managing entity
types, bundles, and entities
https://www.drupal.org/project/eck
ECK Entity types
ECK
GOOD
• Flexible
• Reusable entities
BAD
• No out-of-the-box revisions
support (yet)
• Child entity is not deleted on
parent entity removal
Display Suite
Display Suite
• Extends the display options
for every entity type
• Drag & Drop
• Custom layouts
• Custom fields
https://www.drupal.org/project/ds
Display Suite: Custom layout
YOURTHEME.layout.yml
Display Suite
GOOD
• Familiar UI
• Custom layouts
• Block fields out of the box
• Full page view mode switch
BAD
• Single layout for all entities of
the same type and display
• Difficult to extend
Field Layout
Field layout
• Adds layout capabilities to the Field UI
• Drupal core (from 8.5)
• Experimental
• Similar to Display Suite
Field layout
GOOD
• in Drupal core
• Familiar UI
• Custom layouts
BAD
• Experimental
• Single layout for all entities of
the same type and display
• Difficult to extend
Panels / Layout Builder
Panels
• Panels is an API in Drupal 8
• Currently, Page Manager and
Panelizer implement panels
• Permissions
• Variants
• System of "context”
• In place editor
https://www.drupal.org/project/panels
Custom layout
YOURTHEME.layout.yml
Panels / Layout Builder
GOOD
• Powerful
• More simplified comparing to
Drupal 7 version of Panels
BAD
• Learning curve
• Currently only supports
adding blocks
• Developer’s tool
Others
• Blocks
• Bricks
• WYSIWYG
• Twig templates
• Etc…
1. Focus on solving customer needs
2. Extendable for future needs
3. Planning
Question?

Creating Landing Pages for Drupal 8