-
Type: New Feature
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.5
-
Component/s: Layouts & Widgets
-
Tags:
Addons should be able to inject new widget into the existing layout defined in the application (e.g. DM, CMF, DAM...) without overriding the complete layout definition.
Possible implementation would be have a merge mechanism for the layout extension point:
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager" point="layouts"> <layout name="default_summary_layout" merge="true"> <rows> <row> <widget insertBefore="summary_current_document_files"> summary_current_document_myaddon_widget_1</widget> <widget insertAfter="summary_current_document_description"> summary_current_document_myaddon_widget_2</widget> <widget replace="summary_current_document_tagging"> summary_current_document_myaddon_tagging_replacement_widget</widget> <widget remove="summary_current_document_relations"/> </row> </rows> </layout> </extension>