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 (25 chapters)
Title Page
Credits
About the Author
Acknowledgments
About the Author
About the Reviewer
Customer Feedback
www.PacktPub.com
Preface

Managing fields


By default, Drupal provides a Title field and a Body field. We saw an example of this when we created our first Basic page. However, we can add a wide array of fields to capture just about any type of content you can imagine.

Navigate back to the Basic page content type by entering /admin/structure/types/manage/page/fields or using the Admin toolbar and selecting Manage | Structure | Content types and then the Manage fields button for the Basic page content type. We will get our first glimpse of what is known as the Field UI:

Remember I said there were two fields. Well, the Title field is a system field, so we won't see it displayed under Manage fields, but keep in mind that it is required by every content type.

Every new field we add will be listed here and will display the LABEL, MACHINE NAME, and FIELD TYPE. We can add fields, edit fields, and even delete fields from the Manage fields page. One caveat is that depending on the field, we may not be able to delete it if we have...