# Button Problem im Plugin

**URL:** https://forum.shopware.com/t/button-problem-im-plugin/25604
**Category:** Shopware 3.5
**Tags:** programming
**Created:** [13. März 2015 um 14:46 UTC](https://forum.shopware.com/t/button-problem-im-plugin/25604 "2015-03-13T14:46:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hoppler](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hoppler](https://forum.shopware.com/u/hoppler)
#### Post date: [13. März 2015 um 14:46 UTC](https://forum.shopware.com/t/button-problem-im-plugin/25604/1 "2015-03-13T14:46:26Z")

</div>

Hallo liebe Community, Wie kann ich über einen Button eine eigene html -Datei aufrufen, die im Pluginverzeichnis liegt??? Mit absolutem Pfad geht es ja, aber ich möchte gerne eine Variable dem Button zuordnen, wie z.B. $pfader = $this-\>Path() . ‘Views/frontend/plugins/Mein\_Plugin/Meine.html’; $form-\>setElement(‘button’, ‘konf1’, array( ‘label’ =\> ’ **Mein Plugin bearbeiten - klick mich!** ’, ‘handler’ =\> “function(btn) { window.open($pfader); }” )); Nur leider geht das nicht! Und ein Beispiel habe ich auch nicht gefunden. Kann mir bitte jemand helfen???
