Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18262

Allow live data sources to configure supported actions

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 13.0, 12.10.4
    • 12.10.2
    • Live Data
    • None
    • Unknown
    • N/A

    Description

      We need to extend the live data configuration with support for configuring the available actions. I propose to introduce something like this:

      {
        ...
        "meta": {
          ...
          "actions": [
            {
              "id": "edit",
              "name": "Edit",
              "description": "Edit entry",
              "icon": {...},
              "allowProperty": "doc.hasedit",
              "urlProperty": "doc.edit_url"
            },
            ...
          ]
        }
      }
      

      This configuration can be controlled from the live data source, and can be customized from the live data macro. Moreover, the actions displayer will have a property expecting a list of actions ids representing the actions to display in the Actions column.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: