Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.
Rate Macro

Status
implemented
13.6.1
implemented
Mechanism allowing users to define custom save hanlers for individual controls introduced.
Status

Filed based saveHandler

Introduction

This page contains notes and usage of field based savehandler.

Since Magnolia 3.6.1 there is a mechanism to allow users to define custom save hanlers for individual controls, before http://jira.magnolia-cms.com/browse/MAGNOLIA-2272, this functionality was available per dialog.

Since Magnolia 4.0 the interface used for this functionality was renamed from CustomSaveHandler to FieldSaveHandler http://jira.magnolia-cms.com/browse/MAGNOLIA-2403.

  • In my opinion it is not completely right as FieldSaveHandler is also used for dialogs.

Usage.

Create a control for your dialog and in the control definition add property "saveHandler" and set the value to your implementation of FieldSaveHandler.

As an example Data module is using the saveHandler for some on the dialogs like 'Contacts' and Categorization module is using a saveHandler for the field 'categories'.