# How to make my plugin override a template overridden by another plugin?

**URL:** <https://kanboard.discourse.group/t/how-to-make-my-plugin-override-a-template-overridden-by-another-plugin/2296>\
**Category:** Open Discussions\
**Created:** [June 28, 2022, 10:15am UTC](https://kanboard.discourse.group/t/how-to-make-my-plugin-override-a-template-overridden-by-another-plugin/2296 "2022-06-28T10:15:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IndieDev](https://avatars.discourse-cdn.com/v4/letter/i/a183cd/32.png) [@IndieDev](https://kanboard.discourse.group/u/IndieDev)\
**Post date:** [June 28, 2022, 10:15am UTC](https://kanboard.discourse.group/t/how-to-make-my-plugin-override-a-template-overridden-by-another-plugin/2296/1 "2022-06-28T10:15:59Z")

</div>

Hi, So I have the Bigboard plugin installed, and this overrides board/table\_container. Here is the override set in the Bigboard plugin:

$this-\>template-\>setTemplateOverride(‘board/table\_container’,‘bigboard:board/table\_container’);

Now my own plugin needs to also override this template, but I need my plugin to be the priority, so it doesn’t use the bigboard templates. Here are my overrides:

$this-\>template-\>setTemplateOverride(‘Bigboard:board/table\_container’, ‘Fixes:bigboard/table\_container’);

$this-\>template-\>setTemplateOverride(‘board/table\_container’,‘Fixes:board/table\_container’);

But the template from bigboard is always loaded. What am I missing?

---

<div class="post-metadata">

**Author:** ![Chaosmeister](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/chaosmeister/32/589_2.png) [@Chaosmeister](https://kanboard.discourse.group/u/Chaosmeister)\
**Post date:** [June 28, 2022, 12:20pm UTC](https://kanboard.discourse.group/t/how-to-make-my-plugin-override-a-template-overridden-by-another-plugin/2296/2 "2022-06-28T12:20:19Z")

</div>

I think this is not supported so far

---

<div class="post-metadata">

**Author:** ![aljawaid](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/aljawaid/32/1090_2.png) [@aljawaid](https://kanboard.discourse.group/u/aljawaid)\
**Post date:** [January 15, 2023, 1:35am UTC](https://kanboard.discourse.group/t/how-to-make-my-plugin-override-a-template-overridden-by-another-plugin/2296/3 "2023-01-15T01:35:06Z")

</div>

any way around this?

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [January 15, 2023, 4:20am UTC](https://kanboard.discourse.group/t/how-to-make-my-plugin-override-a-template-overridden-by-another-plugin/2296/4 "2023-01-15T04:20:18Z")

</div>

the answer is no. plain and simple. and even if you could choose plugin load order, only 1 template would be used, so 1 plugin will be missing its overriden template, so that accomplishes nothing.

you can however plan for the future. instead of overriding a template use hooks. if there are no hooks, and you MUST overide a template, then planning for the future, would mean adding hooks to the KB core template that you are overriding, so that you wont have to override it.

but, that does not fix the other plugin that IS overriding it, so now you need collaboration with that plugin to update it.

OR, use collaboration to account for each others plugins, and create joint templates that provide the code necessary to function, and conditionaly use that template when both plugins are present.

bottom line, no, is the answer. (in KBs current state)
