Marketplace Add-Ons

Customizing DAM Compat Bulk Edit

Updated: October 16, 2020

On the same principle as the default bulk edit of the Nuxeo Platform, the DAM Compat module offers a bulk edit form that allows to edit several assets at the same time, with a form adapted to assets relevant metadata.

Customizing the Bulk Edit Form

The default bulk edit form is based on a layout called damBulkEdit@edit. To change it you just need to override the default one by your own damBulkEdit@edit layout to display your own widgets.

Default DAM bulk edit layout

<require>org.nuxeo.dam.layouts</require>
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    point="layouts">
  <layout name="damBulkEdit@edit">
    <templates>
      <template mode="any">/layouts/layout_bulkedit_template.xhtml</template>
    </templates>
    <rows>
      <row>
        <widget>dam_edit_tags</widget>
      </row>
      <row>
        <widget>damc_author</widget>
      </row>
      <row>
        <widget>damc_authoringDate</widget>
      </row>
      <row>
        <widget>subjects</widget>
      </row>
      <row>
        <widget>coverage</widget>
      </row>
    </rows>
  </layout>
</extension>

The widgets used in the damBulkEdit@edit layout should not have the property required set to true. If the widgets you want to use have this property, redefine them in the layout without the required property.