Book Image

Mastering Drupal 8

By : Sean Montague, Chaz Chumley, William Hurley
Book Image

Mastering Drupal 8

By: Sean Montague, Chaz Chumley, William Hurley

Overview of this book

Drupal is an open source content management system trusted by governments and organizations around the globe to run their websites. It brings with it extensive content authoring tools, reliable performance, and a proven track record of security. The community of more than 1,000,000 developers, designers, editors, and others have developed and maintained a wealth of modules, themes, and other add-ons to help you build a dynamic web experience. Drupal 8 is the latest release of the Drupal built on the Symfony2 framework. This is the largest change to the Drupal project in its history. The entire API of Drupal has been rebuilt using Symfony and everything from the administrative UI to themes to custom module development has been affected. This book will cover everything you need to plan and build a complete website using Drupal 8. It will provide a clear and concise walkthrough of the more than 200 new features and improvements introduced in Drupal core. In this book, you will learn advanced site building techniques, create and modify themes using Twig, create custom modules using the new Drupal API, explore the new REST and Multilingual functionality, import, and export Configuration, and learn how to migrate from earlier versions of Drupal.
Table of Contents (17 chapters)

Formatting rows


Creating your first View through the wizard starts with outputting the title of the node. There are a great number of options available to customize the output of each element loaded by the View.

Row styling

Each row from the View can be output in different ways. You can change the output type by clicking on the link next to the label for Show, showing the currently selected row format.

Row styling options dialog

Fields

The initial row styling from the View wizard is to display fields. These fields are either fields on the entity or aggregates or meta-fields defined by different modules. A View created by the wizard starts with the field for Content: Title. Additional fields can be added by clicking on the link for Add next to the section title for Fields. Many of the options are the same as shown in the dialog for filtering a View:

Add new field dialog

Imagine that, for our current list of articles, we want to display the author of the node as well. We can enter the term author...