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
-
Open the address
/search/enumsin your EP (enums have no menu entry). -
Click and create the enum with the name
genreand the label Genre. Click Submit. -
Open the new enum and switch to the tab Lists.
-
Add one entry per genre. The value is the technical value — it must match the CSV file exactly:
Value Label (EN) Label (DE) Integer value actionAction Action 1 adventureAdventure Abenteuer 2 animationAnimation Animation 3 comedyComedy Komödie 4 crimeCrime Krimi 5 dramaDrama Drama 6 science_fictionScience Fiction Science-Fiction 7 -
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
- Open Administration → Datamodel → Property Types.
- Create a new property type of the kind enum property type with the name
genre. - Set enum_ref to the enum
genreyou 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
genrehas seven entries in the tab Lists. - On the search page Property Types, searching for
genrefinds your enum property type.
Next: Step 2: Entity Types