Creating a custom content type

Drupal excels in the realm of content management by allowing different types of content. In this recipe we will walk through creating a custom content type. We will create a Services type that has some basic fields and would be used in a scenario that brings attention to a company's provided services.

You will also learn how to add fields to a content type in this recipe; which generally goes hand in hand when making a new content type on a Drupal site.

How to do it…

  1. Visit Structure and then Content types. Click Add content type to begin creating a new content type.
  2. Enter Services as the name and an optional description.
  3. Select Display settings and uncheck the Display author and date information checkbox. This will hide ...

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.