The main functionality of a content management system is in the name itself – the ability to manage content; that is, to add, edit, and organize content. Drupal provides a central form that allows you to manage all of the content within your website and allows you to create new content. Additionally, you can view a piece of content and have the ability to click an edit link when viewing it.
This recipe assumes you have installed the standard installation profile and have the default node content types available for use.
Let's manage the content by adding, editing, and organizing the content:
Fill in body text for the article:
/node/#
. This is the default path for content and can be changed by editing the content./awesome-article
(note the required "/
".):/awesome-article
.Content
table by clicking Edit there instead of from viewing the content.The Content
page is a
View, which will be discussed in Chapter 3, Displaying Content through Views. This creates a table of all the content in your site that can be searched and filtered. From here you can view, edit, or delete any single piece of content.
In Drupal there are content entities that provide a method of creation, editing, deletion, and viewing. Nodes are a form of a content entity. When you create a node it will build the proper form that allows you to fill in the piece of content's data. The same process follows for editing content.
When you save the content, Drupal writes the node's content to the database along with all of its respective field data.
Drupal 8's content management system provides many features; we will cover some extra information.
New to Drupal 8 is the ability to easily save a piece of content as a draft instead of directly publishing it. Instead of clicking on Save and publish, click the arrow next to it to expand the option of Save as unpublished.
There is a contributed project called Pathauto that simplifies the process of providing URL aliases. It allows you to define patterns that will automatically create URL aliases for content. This module utilizes tokens to allow for very robust paths for content.
The Pathauto project can be found at https://www.drupal.org/project/pathauto.