Articles, Blog

Custom Entities in Shotgun Software – Part 2


Once you’ve created custom entities, often you need to link them to each other or to an existing entity. In this example, we’ve created “Seasons” as a custom entity, and we want to link it to “Episodes”. Shotgun has two types of fields to link entities together: Entity link and Multi-Entity link. Because an Episode belongs to only one Season, you’ll need to connect “Episodes” to “Seasons” by creating an Entity link field on “Episodes”. First, head to the “Episodes” page. Next, click on “Fields”>”Manage Episode Fields…”. Click “Add a new field”. Choose “Entity” as the field type and “Seasons” as the entity type. Give the field a name. In this case call it “Season”. Click “Next” and choose whether you want this new field to be visible on all projects or just the current project. Now you see the new field, called “Season”. You can enter a Season into that field to connect it to Episodes. If you go to the “Seasons” page, you can display the reverse “EpisodeSeason” field and see which Episodes are connected to that Season. A reverse field will always be multi-entity that’s why we created the field on the Episode side. You can also see linked Episodes on a Season detail page. To set this up, click on a Season to view its detail page. Next, enter “Design Page” Mode. Click “New Tab” and select Episodes as the Entity type. Next, click on the Tab’s page filter and set the filter condition to “Season”>”is”>”Current Seasons”, and save the page. Now the Seasons detail page will display the related Episodes.

Leave a Reply

Your email address will not be published. Required fields are marked *