# Plugin to overwrite CoreBundle Views (ChatGPT failed)

**URL:** <https://forum.mautic.org/t/plugin-to-overwrite-corebundle-views-chatgpt-failed/26826>\
**Category:** Development\
**Created:** [January 21, 2023, 1:07pm UTC](https://forum.mautic.org/t/plugin-to-overwrite-corebundle-views-chatgpt-failed/26826 "2023-01-21T13:07:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lufi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lufi/32/7706_2.png) [@lufi](https://forum.mautic.org/u/lufi)\
**Post date:** [January 21, 2023, 1:07pm UTC](https://forum.mautic.org/t/plugin-to-overwrite-corebundle-views-chatgpt-failed/26826/1 "2023-01-21T13:07:17Z")

</div>

A customer came up with the request to make the LeftPanel more “sexy” - so who am I to deny such wishes. 🙂

I’ve created a Plugin and involved ChatGPT to support me. It’s fun, but we failed.

I hope someone can help me with the Code we came up with.

1. I’ve created a folder: plugins/MyPluginBundle/
2. I’ve created the MyPluginBundle.php with the following content:

```auto
  <?php
  
  declare(strict_types=1);
  
  namespace MauticPlugin\MyPluginBundle;
  
  use Mautic\PluginBundle\Bundle\PluginBundleBase;
  use Symfony\Component\DependencyInjection\ContainerBuilder;
  
  class MyPluginBundle extends PluginBundleBase
  {
      public function build(ContainerBuilder $container)
      {
          parent::build($container);
          $container->setParameter('mautic.template.path', '/plugins/MyPluginBundle/Views/');
      }
  }

```

1. I’ve created a folder /plugins/MyPluginBundle/Config and a config.php with the following content:

```auto
<?php

declare(strict_types=1);

return [
    'name' => 'Test',
    'description' => 'Powered by ChatGPT',
    'version' => '1.0.0',
    'author' => 'ChatGPT and me',
    'routes' => [
    ],
];

```

1. I’ve copied /app/bundles/CoreBundle/Views/LeftPanel/ to /plugins/MyPluginBundle/Views/LeftPanel/
2. Cleared cache
3. Nothing happend

What did I do wrong? Is this even possible?

Thank’s alot for you help - very very appriciated.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [January 23, 2023, 7:16am UTC](https://forum.mautic.org/t/plugin-to-overwrite-corebundle-views-chatgpt-failed/26826/2 "2023-01-23T07:16:00Z")

</div>

ChatGPT is great, however kind of limited in how deep it can go towards plugin creation or modification.

Check out this tutorial [How to create custom plugin in Mautic](https://www.internetkatta.com/how-to-create-custom-plugin-in-mautic). together with that and ChatGPT you could get what you want

---

<div class="post-metadata">

**Author:** ![rcarabelli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rcarabelli/32/6807_2.png) [@rcarabelli](https://forum.mautic.org/u/rcarabelli)\
**Post date:** [November 22, 2023, 7:58pm UTC](https://forum.mautic.org/t/plugin-to-overwrite-corebundle-views-chatgpt-failed/26826/3 "2023-11-22T19:58:25Z")

</div>

What do you mean by “left panel more sexy”?

Maybe you just need some existing solution to modify the overall Mautic appearance and that already exists. Is this one: [GitHub - nickian/mautic-whitelabeler: Easily change the logos, colors and company name in the Mautic user interface.](https://github.com/nickian/mautic-whitelabeler)

It has some things to understand to use it but is by far easier than coding a full plugin.
