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 |
---|---|
|
required Action name. |
|
optional Availability node. |
|
required Node types node |
|
required Node types the action operates on. One for each type. |
|
optional Availability rules. |
|
optional, default is Defines whether the action is available for multiple items. |
|
optional, default is Defines whether action is available at the workspace root level. |
|
required Action definition class. |
|
optional Dialog to open when the action is executed. |
|
optional Action icon. |
|
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.
The Add to campaign action does not work in the Resource files app.