silverstripe / silverstripe-intercom

SilverStripe integration with Intercom.io
BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

Removing from admin area #8

Open mandrew opened 7 years ago

mandrew commented 7 years ago

Is it possible to stop the intercom icon(s) loading inside the admin area? Especially as it loads once for the admin and again if the preview pane is open.

I assume this could be done within the config somehow?

xini commented 6 years ago

You can create an extension to remove the chat from the CMS:

<?php
class LeftAndMainIntercomExtension extends Extension {
    public function init() {
        Sminnee\SilverStripeIntercom\IntercomScriptTags::config()->enabled = false;
    }
}

and add that to LeftAndMain in you yml config:

LeftAndMain:
  extensions:
    - LeftAndMainIntercomExtension