Download the PHP package webbuilders-group/silverstripe-add-to-campaigns without Composer
On this page you can find all versions of the php package webbuilders-group/silverstripe-add-to-campaigns. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webbuilders-group/silverstripe-add-to-campaigns
More information about webbuilders-group/silverstripe-add-to-campaigns
Files in webbuilders-group/silverstripe-add-to-campaigns
Package silverstripe-add-to-campaigns
Short Description Capability to add any Versioned object to a campaign easily for CMS Admins
License BSD-3-Clause
Informations about the package silverstripe-add-to-campaigns
Add to Campaigns
Capability to add any Versioned object to a campaign easily for CMS Admins via an "Add to Campaign" button in the CMS just like pages.
Maintainer Contact
- Ed Chipman (UndefinedOffset)
Requirements
- SilverStripe Campaign Admin 1.2+ | 2.0+
Installation
Usage
By default all SilverStripe\Forms\GridField\GridFieldDetailForm_ItemRequest
instances will get an extension that will automatically configure the GridFieldDetailForm_ItemRequest
edit form for the "Add to Campaign" functionality for all allowed classes. To add a class to the allowed support in your config.yml
you must add the below. The DataObject
must include the SilverStripe\Versioned\Versioned
extension as well.
If you have not modified your GridFieldDetailForm_ItemRequest
actions from the default GridFieldDetailForm_ItemRequest::getFormActions()
the "Add to Campaign" button should be automatically be added to all allowed classes. If you have you can add the following to where ever you are setting up your form actions for your DataObject
in your GridFieldDetailForm_ItemRequest
extension.