Skip to main content
Version: Next

Step 1: Genre Enum

A movie belongs to one genre from a fixed list. In EP, such a list is an enum. To use it as a property, you also need an enum property type that points to it. Background: Enums.

Create the Enum​

  1. Open the address /search/enums in your EP (enums have no menu entry).

  2. Click and create the enum with the name genre and the label Genre. Click Submit.

  3. Open the new enum and switch to the tab Lists.

  4. Add one entry per genre. The value is the technical value — it must match the CSV file exactly:

    ValueLabel (EN)Label (DE)Integer value
    actionActionAction1
    adventureAdventureAbenteuer2
    animationAnimationAnimation3
    comedyComedyKomödie4
    crimeCrimeKrimi5
    dramaDramaDrama6
    science_fictionScience FictionScience-Fiction7
  5. Check the order. If needed, drag an entry by its grip . This order is the order in the dropdown later.

Create the Enum Property Type​

  1. Open Administration → Datamodel → Property Types.
  2. Create a new property type of the kind enum property type with the name genre.
  3. Set enum_ref to the enum genre you just created.

You can now use enum_property_type/genre for properties — in the next step for the genre of a movie.

Check​

  • The enum genre has seven entries in the tab Lists.
  • On the search page Property Types, searching for genre finds your enum property type.

Next: Step 2: Entity Types