-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I have a DataObject
that extends SilverStripe\CMS\Model\SiteTree
and I can't get the extra three dots button to show up on the edit interface for the DataObject.
Here's my /app/_config/config.yml
WebbuildersGroup\AddToCampaigns\Control\Admin\AddToCampaignController:
campaignable_classes:
- 'ArticlePage'
The project I'm working on doesn't use namespacing, I'm thinking that might be the reason this isn't working?
There is no customization of the forms happening, I'm unsure of where to put the example code provided. Does this go into the Model files getCMSFields()
function? Does it belong in the controller? I'm relatively new to SilverStripe so sorry if this is a dumb question.
use SilverStripe\CampaignAdmin\AddToCampaignHandler_FormAction;
/** ... **/
if (($myDataObject->isPublished() || $myDataObject->isOnDraft()) && $myDataObject->canPublish()) {
$moreOptions->push(AddToCampaignHandler_FormAction::create()
->removeExtraClass('btn-primary')
->addExtraClass('btn-secondary'));
}
Here's a screenshot of what I see in the edit interface