Using attributes in templates

Documentation of attributes object that appears in all html.twig templates.

Beginning Drupal 8

Authors: 
Publisher: 
Apress
Publication date: 
2014-05
Page count: 
400
ISBN-13: 
9781430265801

Beginning Drupal 8 teaches you how to build, maintain, and manage Drupal 8-based web sites. The book covers using Drupal when building a new web site, what Drupal is, installing and configuring Drupal, creating and managing content, managing users, adding functionality to your web site through Drupal modules, and more advanced topics on using themes, panels, and views. The book also builds practical examples of common Drupal sites, such as a company website, a community website, and a commerce website, that you can take and expand on to create your own Drupal 8 sites.

By reading this book, you will understand the power of the Drupal platform, and why you should be using Drupal if you're not already. Through following the samples in the book, you will quickly build your confidence and your ability to use Drupal. Beginning Drupal 8 gives you the knowledge necessary to build, deploy, and manage web sites of moderate complexity on Drupal 8.

What you’ll learn

  • What Drupal is and why you should use it
  • How to install a basic Drupal web site from scratch
  • How to create content in your new Drupal web site
  • How to manage users on your new Drupal web site
  • How to change the look and feel of your new Drupal web site through themes
  • How to install and configure modules

Who this book is for

This book is for nontechnical users who need to use Drupal 8 to manage content, as well as developers who are new to Drupal 8.

Table of Contents:

  1. Introduction to Drupal
  2. Creating and Managing Content
  3. Creating and Managing Users
  4. Creating and Using Taxonomy
  5. Creating Content Types
  6. Creating and Using Views
  7. Creating and Using Page Payouts
  8. Creating and Using Menus
  9. Creating and Using Blocks
  10. Theming Your Site
  11. Making Your Site Responsive
  12. Extending Your Site Through Contributed Modules
  13. The Anatomy of a Module
  14. Using Multilingual
  15. Administering Your Drupal Site
  16. Using Drush
  17. Using Git
  18. Putting It All Together
  19. Building a Blog Site
  20. Building a Company Website
  21. Building a Community Website
  22. Building a Commerce Website

App A: Modules
App B: Learn More

Theming in Paragraphs for Drupal 8

Theming

The default paragraphs template is in paragraphs-item.html.twig.
It uses theme suggestions for other templates, the following suggestions are available:

  • paragraph__[view_mode] (e.g. paragraph--default.html.twig)
  • paragraph__[type] (e.g. paragraph--image.html.twig)
  • paragraph__[type]__[view_mode] (e.g. paragraph--image--default.html.twig)

How to start with Paragraphs for Drupal 8

How to start in Drupal 8

  1. Create Paragraph Types (bundles in D7) add admin/structure/paragraphs_type
  2. Create a Entity Reference Revisions field on the node/entity type, like admin/structure/types/manage/page/fields for the Basic Page type of node or admin/structure/block/block-content/manage/basic/fields for blocks.
  3. Select "Paragraphs" at the field "Type of item to reference" and select a nice "Allowed number of values", "unlimited" is the best option for Paragraphs
  4. Select "Paragraphs" in the field "Reference method"

Paragraphs in Drupal 8

Drupal 8

A Drupal 8 version has been created, the alpha2 version is working with Drupal 8 beta 4. We try to keep the 8.x-1.x-dev branch compatible with the Drupal 8 HEAD. It currently has the same functionality as the Drupal 7 module.

The Drupal 8 version has been a complete rewrite of the module. It is now based on the Entity Reference Revisions module which is in core. Paragraphs defines:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8