Class CmsDelayedDefaultChangeHandler

  • All Implemented Interfaces:
    I_CmsXmlContentEditorChangeHandler

    public class CmsDelayedDefaultChangeHandler
    extends A_CmsXmlContentEditorChangeHandler
    A change handler that reacts to changes in a field by setting another empty field to a default value.

    This is useful because the default value used may contain macros, which are expanded every time the change handler is called, rather than only during the initial editor load.

    The change handler's configuration consists of two strings separated by a pipe symbol:

    path|default

    path is the path of the field relative to the changed field which should be filled, while default is the default value to write to the field (possibly containing macros).