# Adding tab to discover (core plugin)

**URL:** <https://discuss.elastic.co/t/adding-tab-to-discover-core-plugin/107924>\
**Category:** Kibana\
**Created:** [November 16, 2017, 11:52am UTC](https://discuss.elastic.co/t/adding-tab-to-discover-core-plugin/107924 "2017-11-16T11:52:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarlKnutsen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlknutsen/32/22752_2.png) [@CarlKnutsen](https://discuss.elastic.co/u/CarlKnutsen)\
**Post date:** [November 16, 2017, 11:52am UTC](https://discuss.elastic.co/t/adding-tab-to-discover-core-plugin/107924/1 "2017-11-16T11:52:30Z")

</div>

Hi there,

I'd like to add some functionality to one of the core plugins, namely "discover". I changed the controller a little bit with an additional tab to open a ticket in our ticket system. And I was wondering if it's possible to put the code in a plugin rather than adding code to the existing sources.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/6/367a1ecdc98666db6f3d9e77896bf28c34ff8328.png)

I've put the code in the topNavMenu:

$scope.topNavMenu = [{  
...  
}, {  
key: 'ticket',  
description: 'Create ticket',  
template: require('plugins/kibana/discover/partials/create\_ticket.html'),  
testId: 'discoverTicketButton'  
}];

The template and the submit of the form are calling some additional methods at the bottom of the controller, but I presume these are rather easy to extract into a plugin. But I am wondering if it's possible to access the topNavMenu from there.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [November 16, 2017, 3:52pm UTC](https://discuss.elastic.co/t/adding-tab-to-discover-core-plugin/107924/2 "2017-11-16T15:52:18Z")

</div>

It is not possible to modify an existing kibana angular controller from within a plugin

Nathan

---

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [December 1, 2017, 5:17am UTC](https://discuss.elastic.co/t/adding-tab-to-discover-core-plugin/107924/3 "2017-12-01T05:17:52Z")

</div>

no its possible, i think @CarlKnutsen is talking about plugin `navbarExtensions`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 29, 2017, 5:17am UTC](https://discuss.elastic.co/t/adding-tab-to-discover-core-plugin/107924/4 "2017-12-29T05:17:55Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
