# Display Field "InDesign Status"
With this 4App comes metadata field "indesign status" (file_analysis_status
). It is required for the analysis via the plugin in InDesign. The possible values are: "Open", "Completed", "Error", "Open (due to changes)", and "In progress".
Admins can display this field to show the recent status. They can either implement field file_analysis_status
to the chosen metadata renderer, or implement new object-type indesign
.
# Add Object-type InDesign
To automatically display metadata field "indesign status" when opening an InDesign file in the detail view, the system needs to recognize type indesign
when loading the renderer. You thus need to add object-type indesign
to the default metadata renderer mapping of module Files
:
- Go to or create custom file
config.xml
in foldercustom/modules/file/object_renderer/metadata/default
- Add line
<entry class="string" key="indesign">indesign</entry>
to the following position:
<renderer_config>
<object_type_mapping>
<!-- this comes from the DAM default -->
<entry class="string" key="image">image</entry>
<entry class="string" key="audio">audio</entry>
<entry class="string" key="video">video</entry>
<!-- potential content from other apps or custom mappings -->
<!-- InDesign specific line -->
<entry class="string" key="indesign">indesign</entry>
</object_type_mapping>
</renderer_config>
After clearing the cache, the object-type specific renderer with field "indesign status" will load automatically when opening an InDesign file in the 4ALLPORTAL.
Read more about object-type specific renderers and mappings here (opens new window)
# Implement Field "Indesign Status" Manually
As an alternative, you can implement field "indesign status" to any renderer required. The field comes with a change when installing the 4App, but is not yet visible.
- Create a change file for the renderer you want to add the field to in the corresponding folder in your custom (e.g.
default.4aprenderer_c
in foldercustom/modules/file/object_renderer/metadata/default
) - Enter the parent configuration via
<changes extends>
(e.g.<changes extends="metadata/default">
) - Use the change syntax (opens new window) to specify the place for implementing, and add field "indesign status":
<field_renderer>
<type>Selection</type>
<placeholder>L-FILE-FILE_ANALYSIS_STATUS-PROMPT</placeholder>
<field>
<name>file_analysis_status</name>
</field>
<value_option_key>file_analysis_status</value_option_key>
</field_renderer>
Read more about changes here (opens new window).