Nesting Editors in SAP Commerce Backoffice Config

sap-commercebackoffice

When you have a custom CMS component with a localized map field, Backoffice doesn't know which editor to use out of the box. You don't need a custom widget — you can nest existing editors in your backoffice-config.xml:

<editorArea:attribute editor="com.hybris.cockpitng.editor.localized(com.hybris.cockpitng.editor.defaultmap)" qualifier="dynamicFields"/>

Gotchas:

  • File must be named <extension-name>-backoffice-config.xml in your resources directory.
  • Include the <?xml> and <config> root tags.
  • If your extension isn't a backoffice extension, add <meta key="backoffice-module" value="true" /> to extensioninfo.xml.
  • Moving fields out of the unbound section into a named section is required for the editor override to work.