Creating a document content type

In this recipe, we will demonstrate how to create a simple content type for storing documents or files. This content type forms the basis of the document library, which features in the following recipe.

After completing this recipe, you will be able to upload documents that output content in the following format:

Creating a document content type

How to do it...

We will begin by creating a new content type called Document. We will add a file field to the content type and finally configure its display:

  1. Select Structure from the admin menu, then select Content types.
  2. Select +Add content type.
  3. Enter Document in the Name field.
  4. Click on Save and add fields ...

Get Drupal 7 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.