Blog articles
We'll modify Drupal core's Article content type so we can use it to generate blog post for our site. Blog articles are the content we will display on the homepage as Featured Content and From our Blog. This means each card in the homepage represents a blog article in a compact view. We will achieve the Card and Card Wide displays using Drupal's View Modes.
From Drupal's Admin Toolbar, click Structure | Content Types
Click Manage fields next to Article
Delete the **Comments **field
Add the missing fields based on the table below
Click the Save and manage fields button at the bottom of the page
Add the following fields:
Field label | Machine name | Field type |
---|---|---|
Title |
| This field is auto generated. No need to create it |
Body |
| This field is auto generated. No need to create it |
Date |
| This field is auto generated. No need to create it |
Image |
| Media Reference |
Tags |
| Taxonomy Term Reference |
Author |
| User Reference |
Category |
| Text (plain) |
For the Author field, set the following configuration:
Allowed number of values is 1
Reference type deselect Include the anonymous user
Last updated