diff --git a/info.yml b/info.yml index 06be1067..2590958d 100644 --- a/info.yml +++ b/info.yml @@ -132,6 +132,15 @@ configuration: allows_empty: True default_value: [] + additional_publish_fields: + type: list + description: "Additional fields to be queried on the PublishedFile entity, which will be available for the + loader items to use" + values: + type: str + allows_empty: True + default_value: [] + # this app works in all engines - it does not contain # any host application specific commands diff --git a/python/tk_multi_loader/model_latestpublish.py b/python/tk_multi_loader/model_latestpublish.py index 4f55d000..6042a543 100644 --- a/python/tk_multi_loader/model_latestpublish.py +++ b/python/tk_multi_loader/model_latestpublish.py @@ -249,7 +249,8 @@ def _do_load_data(self, sg_filters, treeview_folder_items): else: self._publish_type_field = "tank_type" - publish_fields = [self._publish_type_field] + constants.PUBLISHED_FILES_FIELDS + publish_fields = [self._publish_type_field] + constants.PUBLISHED_FILES_FIELDS \ + + app.get_setting("additional_publish_fields") # first add our folders to the model # make gc happy by keeping handle to all items diff --git a/python/tk_multi_loader/model_publishhistory.py b/python/tk_multi_loader/model_publishhistory.py index 80acdb3f..1bfce216 100644 --- a/python/tk_multi_loader/model_publishhistory.py +++ b/python/tk_multi_loader/model_publishhistory.py @@ -60,7 +60,7 @@ def load_data(self, sg_data): publish_type_field = "tank_type" # fields to pull down - fields = [publish_type_field] + constants.PUBLISHED_FILES_FIELDS + fields = [publish_type_field] + constants.PUBLISHED_FILES_FIELDS + app.get_setting("additional_publish_fields") # when we filter out which other publishes are associated with this one, # to effectively get the "version history", we look for items