Content Types
Last updated
Last updated
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.
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
Entity to reference
Referenced type
Taxonomy term
Genre vocabulary
Label
Type
Machine name
Allowed # values
Featured Movie
Entity Reference
field_featured_movie
Limited 1
Movie List
Entity Reference Revisions
field_movie_list
Unlimited
Type to reference
Reference type
Content
Movie
Paragraph
Movie Genre List