Book Image

Learning Drupal 8

By : Nick Abbott
Book Image

Learning Drupal 8

By: Nick Abbott

Overview of this book

Drupal 8 sets a new standard for ease of use, while offering countless new ways to tailor and deploy your content to the Web. Drupal 8 allows user to easily customize data structures, listings, and pages, and take advantage of new capabilities for displaying data on mobile devices, building APIs, and adapting to multilingual needs. The book takes you step by step through building a Drupal 8 website. Start with the basics, such as setting up a local “stack” development environment and installing your first Drupal 8 site, then move on to image and media handling, and extending Drupal modules. Push your knowledge by getting to grips with the modular nature of Drupal, and learning to extend it by adding new functionalities to create your new modules. By the end of the book, you will be able to develop and manage a modern and responsive website using Drupal.
Table of Contents (21 chapters)
Learning Drupal 8
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Extending content types


In the next section, we'll look at some common adjustments made to fields—their content-editing interfaces, prompt text, default values, and their display settings—so as to get used to the options available to you.

Adjusting field settings

We'll start by making some adjustments to the core Article and Basic page content types and then move on to creating some new content types and employing some new field types to meet the requirements as laid out in Chapter 5, Basic Content.

Forcing the Article type field to be mandatory

It is often a good idea to insist that certain fields are populated by making them required.

You have actually already done this in Chapter 6, Structure, when you set the relationship to the Category taxonomy field, but let's go through this again now.

Another typical candidate field for this might be the Article type field in the Article content type. You'll recall that its purpose is to enable us to classify Articles as either Blog posts, News, or Articles...