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 module, 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 ...
Get Drupal 8: Enterprise Web Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.