# Wie fügt man der Analyse-Toolbar Shopware-Backend neue Elemente hinzu?

**URL:** <https://forum.shopware.com/t/wie-fugt-man-der-analyse-toolbar-shopware-backend-neue-elemente-hinzu/57743>\
**Category:** Shopware 5\
**Created:** [29. Januar 2019 um 13:14 UTC](https://forum.shopware.com/t/wie-fugt-man-der-analyse-toolbar-shopware-backend-neue-elemente-hinzu/57743 "2019-01-29T13:14:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alirizvi](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@alirizvi](https://forum.shopware.com/u/alirizvi)\
**Post date:** [29. Januar 2019 um 13:14 UTC](https://forum.shopware.com/t/wie-fugt-man-der-analyse-toolbar-shopware-backend-neue-elemente-hinzu/57743/1 "2019-01-29T13:14:33Z")

</div>

Ich möchte ein neues Element in der Analysefenster-Symbolleiste über extjs hinzufügen, z. B. [Screenshot by Lightshot](https://prnt.sc/mdqqjc)

aber immer noch kann ich die Ergebnisse nicht sehen

hier ist mein code

&nbsp;

swag\_custom\_statistics/backend/view/main/voucher.js  
//{namespace name=backend/analytics/view/main}  
//{block name=“backend/analytics/swag\_custom\_statistics/view/main/voucher”}  
Ext.define(‘Shopware.apps.Analytics.swagCustomStatistics.view.main.Voucher’, {  
&nbsp; &nbsp; extend: ‘Shopware.apps.Analytics.view.main.Toolbar’,  
&nbsp; &nbsp; alias: ‘widget.voucher-analytics-toolbar’,  
&nbsp; &nbsp; initComponent: function () {  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;var me = this;  
&nbsp; &nbsp; &nbsp; &nbsp; Ext.applyIf(me, {  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; items: [  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;xtype: ‘button’,  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;text: ‘{s name=toolbar/export}Export2{/s}’,  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;name: ‘export2’,  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;iconCls: ‘sprite-drive-download’,  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;handler: function () {  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;me.fireEvent(‘exportCSV’);  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;},  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;]  
&nbsp; &nbsp; &nbsp; &nbsp; });  
&nbsp; &nbsp; &nbsp; &nbsp; me.callParent(arguments);  
&nbsp; &nbsp; }  
});  
//{/block}

swag\_custom\_statistics/app.js

&nbsp;

// {block name=“backend/analytics/application”}  
// {$smarty.block.parent}

// {include file=“backend/analytics/swag\_custom\_statistics/store/navigation/voucher.js”}  
// {include file=“backend/analytics/swag\_custom\_statistics/view/table/voucher.js”}  
// {include file=“backend/analytics/swag\_custom\_statistics/view/main/voucher.js”}  
// {/block}

---

<div class="post-metadata">

**Author:** ![\_marco](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/_marco/32/8582_2.png) [@\_marco](https://forum.shopware.com/u/_marco)\
**Post date:** [26. Juli 2019 um 08:17 UTC](https://forum.shopware.com/t/wie-fugt-man-der-analyse-toolbar-shopware-backend-neue-elemente-hinzu/57743/2 "2019-07-26T08:17:07Z")

</div>

Hi.

Das Thema ist zwar schon älter aber ich stehe gerade vor dem gleichen Problem. Bist du hier weiter gekommen?

Viele Grüße  
Marco
