...
- "SUMMARY_TOP_LEFT" to add widgets on top left of default summary
- "SUMMARY_TOP_RIGHT" for top right zone
- "SUMMARY_BOTTOM_LEFT" for bottom left zone
- "SUMMARY_BOTTOM_RIGHT" for bottom right zone
Default widgets are either contributed to one of these zones, either already added to the layout between these widgets.
Here is the summary_actions_top_left definitiondefinition of the widget referencing actions for the "SUMMARY_TOP_LEFT" category:
| Code Block |
|---|
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
point="widgets">
<widget name="summary_actions_top_left" type="summary_current_document_custom_actions">
<labels>
<label mode="any"></label>
</labels>
<properties widgetMode="any">
<property name="category">SUMMARY_TOP_LEFT</property>
<property name="subStyleClass">summaryActions</property>
</properties>
</widget>
</extension>
|
Default widgets (presenting the document relations, status, publications, etc...) are either contributed to one of these zones, either already added to the layout between these widgets. For instance, here is the definition of the widget placed in the left panel of the summary layout:
| Code Block |
|---|
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
point="widgets">
<widget name="summary_left_panel" type="container">
<handlingLabels>true</handlingLabels>
<labels>
<label mode="any"></label>
</labels>
<translated>false</translated>
<properties widgetMode="any">
<property name="hideSubLabels">true</property>
</properties>
<subWidgetRefs>
<widget>summary_actions_top_left</widget>
<widget>summary_current_document_comments</widget>
<widget>summary_current_document_publications</widget>
<widget>summary_current_document_single_tasks</widget>
<widget>summary_actions_bottom_left</widget>
</subWidgetRefs>
</widget>
</extension>
|
Here is a sample contribution to add a widget to the top left widget:
...