Create the dynamic module and its content types

This section describes all the required content types that you must create and demonstrates their hierarchy.

Content types relations

The following structure explains the hierarchy relations between the content types:

travelling agency1

Each country item can have child items of type Cities and Festivals. For example, the country Bulgaria can have several Cities - Sofia, Plovdiv, and Varna, and several Festivals - Festival of the Plum, Bansko Jazz festival.

Content type descriptions

You must first create a dynamic module named Travelling Agency. In the module you must create content types with the following content types and fields:

  • Country content type with the following fields:
    • Name of type Short text (required)
    • Description of type Long text
    • Location of type Address field
    • MainPicture of type Related Media (required, with single image limitation)
  • City content type (child of Country) with the following fields:
    • Name of type Short text (required)
    • History of type Long text
    • Location of type Address field
    • MainPicture of type Related Media (required, with single image limitation)
  • Festival content type (child of Country) with the following fields:
    • Name of type Short text (required)
    • Description of type Long text
    • From of type DateTime
    • То of type DateTime
    • Address of type Address field
    • MainPicture of type Related Media (required, with single image limitation)
  • Hotel content type (child of City) with the following fields:
    • Name of type Short text (required).
    • Description of type Long text
    • WorkingHours of type Short text
    • Location of type Address field
    • MainPicture of type Related Media (required, with single image limitation)
  • Restaurant content type (child of City) with the following fields:
    • Name of type Short text (required).
    • Description of type Long text
    • WorkingHours of type Short text
    • Location of type Address field
    • MainPicture of type Related Media (required, with single image limitation)

Was this article helpful?