Athento allows you to create a custom panel in the document view to display fields and categories in read-only mode.
To do this, you have to go to the administration and create a new custom panel for the form
(Home > Doctypes > Document panels).
The following parameters must be specified:
- Panel type: custom.
-
Template: file_card_metadata_panel_one_column_ro.html (metadata panel with a column where metadata is displayed in read mode —read-only).
- Other templates according to number of columns:
- file_card_metadata_panel_two_columns_ro.html (2 columns of metadata in read-only mode)
- file_card_metadata_panel_three_columns_ro.html (3 columns of metadata in read-only mode)
- file_card_metadata_panel_two_columns_ro.html (2 columns of metadata in read-only mode)
- Other templates according to number of columns:
Template parameters:
{"metadatas": ["<metadata_name_1>", "<metadata_name_2>", ...], "metadata_categories": ["<category_slug_1>", "<category_slug2>"]}
In the "metadata" key, a list of the names ("name" attribute) of the fields to be displayed is specified (the order of the list shall be preserved). The "metadata_categories" key specifies a list of the "slug" attribute of the categories to be displayed (the order in which the categories are displayed shall be preserved). For the categories, all metadata shall be displayed.
Once defined, a panel will be displayed in the document view with the defined fields and categories in read-only mode.
Example of "Initial data" panel using two-column template, and "Custom 1 panel" with one-column template:
Comments
0 comments
Please sign in to leave a comment.