Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-11640

Notify extensions when a channel is published or discarded

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 13.1.0
    • None
    • None
    • 3
    • Tiger
    • Tiger Sprint 202, Tiger Sprint 203

    Description

      Open UI extensions that run on the same origin can use existing internal APIs to modify the configuration of a channel. When a user discards channel changes (via Channel > Discard changes) those modifications will be discarded too. In that case the extension should refresh it's UI to reflect the old state again. Currently, the client library does not provide an event for this case.

      Idea: add the following events to the client library:

      • ui.channel.on('discardChanges', eventHandler)
        Called when a user discards channel changes
      • ui.channel.on('publishChanges', eventHandler)
        Called when a user publishes channel changes

      Note that these events can also happen when an admin publishes or discards changes from other users (via 'Channel > Manage changes').

      The 'publishChanges' event is not strictly necessary for the envisioned use case, but seems natural to add too.

      To be decided: which data to pass to the event handlers.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mdenburger Mathijs den Burger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: