Check your version

This tutorial covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Last updated February 16, 2017

In this exercise you will demonstrate the ability to build a 'Movie Review' content type based on our design by downloading contributed modules to provide all the necessary field types.

Objectives and Prerequisites

You will need the following knowledge and skills. If you need a review, check out the Resources section at the bottom of this page.

  1. Establish what field types are missing from Drupal core, and download contributed modules to fulfil the requirements of our content type.
  2. Create and configure all the necessary fields in our content type.
  3. Configure the display mode of a content type to format the display of content.

Wireframe Reference

You will need to refer to the wireframe collection PDF.

  • Review Page

Screenshot of a finished movie review

Movie Review Screenshot

Tasks

Create the necessary fields documented in Lesson 2.

As necessary, download contributed modules to enable functionality to create all the required fields. Use Drush to download and enable the modules.

Create a Genre taxonomy vocabulary to categorize the content.

Create a test Movie Review item and view it.

Configure the display mode of your content type to make it look as close as possible to the wireframe.

Hints

  • There are 3 contributed modules required for this content type in Drupal 7. (Only 1 is needed in Drupal 8+).
  • Use sensible machine names. Prefix each one with movie_review to help make it easier to identify fields by content type later.
  • Use http://www.lipsum.com/ to generate filler text for large content areas.

Summary

  • Use meaningful Titles and Descriptions for your fields. Remember someone else may be authoring the content.
  • Use Drush wherever possible to speed up the download of modules.
  • Use out-of-the-box Drupal configuration wherever possible to meet your objectives.

Resources

Creative Commons License

Drupal Training Resources by Damian Robinson are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Based on a work at http://www.damianrobinson.co.uk.