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

Pathauto and Token


Next, we are going to install two modules that work together: Pathauto (drupal.org/project/pathauto) and Token (drupal.org/project/token).

Download, install, and enable both of these modules as earlier. You'll see that Pathauto has a dependency on Token, meaning you cannot use Pathauto until the Token module has also been installed.

Earlier in the book, you'll remember that we specified the URLs of pages as node/4, and so on. This is not particularly user friendly, and we saw that the URL of a page can be added manually.

The Pathauto module allows you to create patterns for new content URLs so that a standard pattern is created for the content. This is beneficial to your users and also to search engines.

Install both the Pathauto and the Token module now

Once you have installed both the modules, navigate to:

Configuration | Search and Metadata | URL aliases (admin/config/search/path).

You've been here before, but now you'll see additional tabs on this screen, in particular,...