- Drupal 8 Development Cookbook(Second Edition)
- Matt Glaman
- 238字
- 2025-04-04 18:20:51
How to do it...
Let's manage the content by adding, editing, and organizing the content:
- Go to Content to view the content management overview from.
- Click on Add content to view the list of available content types.
- Click on Article as the piece of content you would like to make.
- Provide a title for the piece of content. Titles are always required for content. Fill in the body text for the article:

You may change the text format to customize what kind of text is allowed. If the user only has one format available, there will be no select box, but the About text formats link will still be present.
- Once you have added your text, click on Save and publish at the bottom of the form. You will then be redirected to view the newly created piece of content.
- Note that the URL for the piece of content is /node/#. This is the default path for content and can be changed by editing the content.
- Click on Edit tab from the tabs right above the content.
- From the right sidebar, click on URL PATH SETTINGS to expand the section and enter a custom alias, for example /awesome-article (note the required / symbol):

- Save the content, and note that the URL for your article is /awesome-article.
- You could also edit this article from the Content table by clicking on Edit there, instead of from viewing the content.