Content Types
In the previous set of exercises we built all the components our movie site needs. Now we are going to build the content types which will provide the data to feed the components.
Content models
Below you will see the content models for Movie and Landing Page content types. Using the step by step instructions at the bottom of this page, create both content types using the fields details outlined in the respective content model tables.
Label
Type
Machine name
Allowed # values
Synopsis
Text (formatted, long, with summary)
body
Limited 1
Cover Image
Image
field_cover_image
Limited 1
Avg. viewer rating
List (Integer)
field_average_viewer_rating
Limited 1
Genre
Entity Reference
field_genre
Unlimited
MPAA Rating
List (Text)
field_mpaa_rating
Limited 1
Promo Sentence
Text
field_promo_sentence
Limited 1
Average Viewer Rating allowed values
Make 3 Stars the default value.
Genre settings
Entity to reference
Referenced type
Taxonomy term
Genre vocabulary
MPAA Rating allowed values
Make PG the default value.
Last updated