# Plugin, dass die Ansicht von Content beeinflusst

**URL:** <https://forum.shopware.com/t/plugin-dass-die-ansicht-von-content-beeinflusst/15248>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [27. August 2013 um 22:03 UTC](https://forum.shopware.com/t/plugin-dass-die-ansicht-von-content-beeinflusst/15248 "2013-08-27T22:03:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmmichael](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@mmmichael](https://forum.shopware.com/u/mmmichael)\
**Post date:** [27. August 2013 um 22:03 UTC](https://forum.shopware.com/t/plugin-dass-die-ansicht-von-content-beeinflusst/15248/1 "2013-08-27T22:03:00Z")

</div>

Hallo, hab folgendes Plugin erstellt: ` class Shopware\_Plugins\_Frontend\_SysContentManagement\_Bootstrap extends Shopware\_Components\_Plugin\_Bootstrap { public function install() { $this-\>subscribeEvents(); return true; } function subscribeEvents(){ $this-\>subscribeEvent( 'Enlight\_Controller\_Action\_PostDispatch\_Frontend\_Custom', 'onPostDispatch' ); } public function onPostDispatch(Enlight\_Event\_EventArgs $args) { $request = $args-\>getSubject()-\>Request(); $response = $args-\>getSubject()-\>Response(); $view = $args-\>getSubject()-\>View(); if ($response-\>isException() || $request-\>getModuleName() != 'frontend' || !$view-\>hasTemplate()) { return; } $view-\>addTemplateDir($this-\>Path() . 'Views/'); $view-\>loadTemplate('frontend/custom/magazin.tpl'); } } ` Sobald ich jedoch das Load-Template ausführe, erhalte ich einen weißen Bildschirm (also der Ausschnitt ist leer, wo eigentlich der Content stehen müsste). Gruß, Michael
