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:
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:
- Select Structure from the admin menu, then select Content types.
- Select +Add content type.
- Enter Document in the Name field.
- Click on Save and add fields ...