- Create a Heartcore project
- Create Two languages English(US) & Danish(Denmark)
- Create the following structure in the project
-
Create two folders π
- Elements
- pages
-
In the Elements folder π create an Element type βοΈ called Genre and create two properties:
- Index number(Textstring, Mandatory)
- Title(Textstring, Vary by culture)
-
In the Pages π folder create two Document Types:
- TV Show
- TV Shows
-
TV Show Document Type needs 3 properties:
- Show Summary(RTE, Vary by culture)
- Show Genres(Blocklist using Element type: Genre)
- Show Image(Image Media Picker)
- Show Id(Label(String))
-
TV Shows Document Type has no properties and has the following settings:
- List View βοΈ
- Allow as root βοΈ
- Allowed child node types: TV Show
-
The structure β
- Create a content node populated automatically using the Heartcore Client Library or if not using C# Heartcore API Docs and the api.tvmaze.com
- If a show exists with an ID do the following β
- Update Existing Property:
- If the property already exists in Heartcore but is empty, check if TVMAZE has a value for it. If it does, update the property in Heartcore with the value from TVMAZE.
- Create New Content with Media:
- If the property doesn't exist in Heartcore, download the images from TVMAZE, save them to the media section in Heartcore, and link them to a new content node you create.