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 that you understand the CSS patterns used for smaller elements of Drupal such as fields, and can create selectors which override them appropriately. You will also override template files to create your own markup and suggest new template files.
Goal
Add a template file with custom classes and styles for the movie review content type.
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.
- Familiarity with the default classes that are generated by Drupal core.
- Override default classes to create page layouts.
- Use preprocessors to modify the theme.
- Create custom template files.
Wireframe reference
You will need to refer to the wireframe collection PDF.
Tasks
Create a custom template file for the Movie Review node.
Recap
- By understanding the conventions used within Drupal themeing, we can extend the template files to allow fine-grained control over content elements.
Further your understanding
- Continue to the next lesson: Movie Project: Use jQuery to Extend Functionality.
Additional resources
- Theming Drupal 7 (Drupal.org)
- Video: Theming Basics for Drupal 7 series (Drupalize.Me)