Enabling the image field for content types in Drupal 8

By default, only the Article content type has the image field enabled. You may enable this for other content types if desired. Note that this is not an image within the body field, but the Image field in particular. Follow the instructions below as we enable the image field for the other default content type in Drupal 8, the Basic Page.

How to enable the image field for content types

  1. Log into your Drupal 8 administration dashboard.
  2. edu Drupal 8 common images select menu

    From the top menu bar, click on the Menu option.

  3. edu Drupal 8 common images select structure

    After the next menu bar appears, click on the Structure tab.

  4. edu Drupal 8 common images select content type

    From the Structure list, click on the Content Types option.

  5. edu Drupal 8 108 enable image field 1 click manage fields

    This leads you to a page with all the currently available content types. Find the one you want to work with and click on the Manage Fields link in the dropdown to the far right of the row. In this example, we chose the Basic Page content type.

  6. edu Drupal 8 108 enable image field 2 enter data

    You are now on the the Basic Page settings page where we will add the new field. Since the image field is a pre-exiting field, we will add it in the area that is labeled Re-use existing field. Go ahead and name it here. We named it Image. Also, select the Image: field_image (Image) option from the dropdown.

  7. Once you have done that, click on the Save button at the bottom of the page. This will enable the Image field for your selected content type. Look below to see the before and after shots of our Basic Page as our example.
    BeforeAfter
    edu Drupal 8 108 enable image field before

    edu Drupal 8 108 enable image field after

Comments

It looks like this article doesn't have any comments yet - you can be the first. If you have any comments or questions, start the conversation!

Was this article helpful? Let us know!