Site Building

Movie Project: Create a Content Type for Drupal 7

Last updated
Categories
Up-to-date with minor version
7.x

This page is archived

We're keeping this page up as a courtesy to folks who may need to refer to old instructions. We don't plan to update this page.

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.

Goal

Add all necessary field types to a content type, using contributed modules if necessary, and configure the display of the content.

Prerequisites

You will need the following knowledge and skills. If you need a review, check out the Additional 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:

Image

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 now).
  • 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.

Recap

  • 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.

Further your understanding

Additional 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.

Hands-On Exercises: Movie Project