Preconfigured Add to campaign action

The module includes a preconfigured Add to campaign action that you can add to any content app. See action definition for more.

The action is configured in /modules/campaign-publisher/actions/selectCampaignAction.

Node name Value

πŸ“ campaign-publisher

     πŸ“ actions

         βΈ¬ selectCampaignAction

             βΈ¬ availability

                 βΈ¬ nodeTypes

                     ⬩ asset

mgnl:asset

                     ⬩ configuration

mgnl:contentNode

                     ⬩ content

mgnl:page

                     ⬩ folder

mgnl:folder

                     ⬩ templateOrResource

mgnl:content

                 βΈ¬ rules

                     ⬩ multiple

true

                     ⬩ root

false

                 ⬩ class

info.magnolia.campaignpublisher.ui.action.OpenMultiEditDialogAction$Definition

                 ⬩ dialogName

campaign-publisher:addToCampaign

                 ⬩ icon

icon-add-folder

                 ⬩ label

campaign-publisher.actions.selectCampaignAction.label

Action properties

Property Description

selectCampaignAction

required

Action name.

     availability

optional

Availability node.

         nodeTypes

required

Node types node

             <node type mappings>

required

Node types the action operates on. One for each type.

         rules

optional

Availability rules.

         multiple

optional, default is false

Defines whether the action is available for multiple items.

         root

optional, default is false

Defines whether action is available at the workspace root level.

     class

required

Action definition class.

     dialogName

optional

Dialog to open when the action is executed.

     icon

optional

Action icon.

     label

optional

Action label.

Adding the preconfigured Add to campaign action to content apps

The easiest way to make the preconfigured Add to campaign action available in a content app is to extend the selectCampaignAction in the module.

Example: Adding selectCampaignAction to tours app in /modules/tours/apps/tours/subapps/browser/actions.

Node name Value

πŸ“ tours

     πŸ“ apps

         βΈ¬ tours

             βΈ¬ subapps

                 βΈ¬ browser

                     βΈ¬ actions

                         βΈ¬ selectCampaignAction

                             ⬩ extends

/modules/campaign-publisher/actions/selectCampaignAction

Next, make the action available in the action bar.

Example: Making selectCampaignAction available in the item section of the action bar in /modules/tours/apps/tours/subapps/browser/actionbar/sections/item/groups/activationActions. See Action bar definition for more.

Node name Value

     βΈ¬ browser

         βΈ¬ actionbar

             βΈ¬ sections

                 βΈ¬ …​

                 βΈ¬ item

                     βΈ¬ groups

                         βΈ¬ …​

                         βΈ¬ activationActions

                             βΈ¬ items

                                 βΈ¬ activate

                                 βΈ¬ deactivate

                                 βΈ¬ selectCampaignAction

Here’s the action in the Tours app.

Tours app add to campaign action

The Add to campaign action does not work in the Resource files app.

Feedback

DX Core

×

Location

This widget lets you know where you are on the docs site.

You are currently perusing through the DX Core docs.

Main doc sections

DX Core Headless PaaS Legacy Cloud Incubator modules