# frontend/account/content\_right.tpl über Plugin erweitern

**URL:** <https://forum.shopware.com/t/frontend-account-content-right-tpl-uber-plugin-erweitern/19781>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [16. April 2014 um 11:07 UTC](https://forum.shopware.com/t/frontend-account-content-right-tpl-uber-plugin-erweitern/19781 "2014-04-16T11:07:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hbee](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hbee](https://forum.shopware.com/u/hbee)\
**Post date:** [16. April 2014 um 11:07 UTC](https://forum.shopware.com/t/frontend-account-content-right-tpl-uber-plugin-erweitern/19781/1 "2014-04-16T11:07:28Z")

</div>

Hallo, ich möchte über ein Plugin das Menü im Kundenkonto um einen Punkt erweitern. Irgendwie schaffe ich es aber nicht. so sollte es doch eigentlich gehen: ` [...] $this-\>subscribeEvent( 'Enlight\_Controller\_Action\_PostDispatch\_Frontend\_Account', 'onPostDispatchAccount' ); [...] public function onPostDispatchAccount(Enlight\_Event\_EventArgs $args) { if(!$args-\>getRequest()-\>isDispatched()||$args-\>getResponse()-\>isException()) { return; } $view = $args-\>getSubject()-\>View(); $view-\>addTemplateDir($this-\>Path() . 'Views/'); $view-\>extendsTemplate('frontend/account/content\_right.tpl'); } ` content\_right.tpl: [code] {block name=“frontend\_account\_content\_right\_end” append}

- [{se name=“myControllerName”}Mein Controller{/se}]({url controller=‘meincontroller’})  
{/block} [/code] auch ein {extends file=‘frontend/account/index.tpl’} hilft hier nicht. Kann mir jemadn auf die Sprünge helfen wie ich in das menü einen weiteren Eintrag bekomme? Vielen Dank

---

<div class="post-metadata">

**Author:** ![hbee](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hbee](https://forum.shopware.com/u/hbee)\
**Post date:** [17. April 2014 um 20:51 UTC](https://forum.shopware.com/t/frontend-account-content-right-tpl-uber-plugin-erweitern/19781/2 "2014-04-17T20:51:28Z")

</div>

Keiner? Gesendet von meinem iPhone mit Tapatalk

---

<div class="post-metadata">

**Author:** ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)\
**Post date:** [17. April 2014 um 21:09 UTC](https://forum.shopware.com/t/frontend-account-content-right-tpl-uber-plugin-erweitern/19781/3 "2014-04-17T21:09:29Z")

</div>

Schritt 1: debuggen. Wird deine event Methode überhaupt ausgeführt? Wird dein Template überhaupt geladen? Macht dein Template überhaupt das erwünschte? Viele Grüße

---

<div class="post-metadata">

**Author:** ![hbee](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hbee](https://forum.shopware.com/u/hbee)\
**Post date:** [17. April 2014 um 21:26 UTC](https://forum.shopware.com/t/frontend-account-content-right-tpl-uber-plugin-erweitern/19781/4 "2014-04-17T21:26:32Z")

</div>

Hi, die Methode wird ausgeführt. Das Template wird scheinbar nicht geladen. Zumindest wird in dem gewünschten Block nichts angefügt. Wie kann ich prüfen ob das Template geladen wird? Vielen Dank Gesendet von meinem iPhone mit Tapatalk

---

<div class="post-metadata">

**Author:** ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)\
**Post date:** [17. April 2014 um 21:38 UTC](https://forum.shopware.com/t/frontend-account-content-right-tpl-uber-plugin-erweitern/19781/5 "2014-04-17T21:38:35Z")

</div>

Setz mal das Template in einen Plugin-Unterordner und lade es dort heraus. Also zb /frontend/myPlugin/account/content\_right.tpl Viele Grüße

---

<div class="post-metadata">

**Author:** ![hbee](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hbee](https://forum.shopware.com/u/hbee)\
**Post date:** [21. April 2014 um 13:37 UTC](https://forum.shopware.com/t/frontend-account-content-right-tpl-uber-plugin-erweitern/19781/6 "2014-04-21T13:37:16Z")

</div>

Danke, das war’s. Macht ja auch Sinn.
