# plugin routing

**URL:** <https://forum.shopware.com/t/plugin-routing/31019>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [1. Oktober 2015 um 09:44 UTC](https://forum.shopware.com/t/plugin-routing/31019 "2015-10-01T09:44:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasHeinsen](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@ThomasHeinsen](https://forum.shopware.com/u/ThomasHeinsen)\
**Post date:** [1. Oktober 2015 um 09:44 UTC](https://forum.shopware.com/t/plugin-routing/31019/1 "2015-10-01T09:44:07Z")

</div>

Hey ich will ein simples plugin machen und ein template für frontend integrieren. wenn man den shop aufruft [shop.com/hallo](http://shop.com/hallo) also mit dem path hallo soll das plugin das normale template komplett vergessen und nur das ausm plugin nehmen also zu anfang eine komplett blanke seite mit dem text hallo. kann mir einer sagen wie ich das genau machen ?

---

<div class="post-metadata">

**Author:** ![ThomasHeinsen](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@ThomasHeinsen](https://forum.shopware.com/u/ThomasHeinsen)\
**Post date:** [1. Oktober 2015 um 10:36 UTC](https://forum.shopware.com/t/plugin-routing/31019/2 "2015-10-01T10:36:08Z")

</div>

Will ja den Index überschreiben, sodass der wenn ich mit einem bestimmten Path starte [shop.com/hier/](http://shop.com/hier/) nen ganz anderes template lade was im plugin liegt oder einfach weiße seite mit nem output hallo welt. dachte erst ich mach im bootstrap `public function onFrontendPostDispatch(Enlight\_Event\_EventArgs $arguments) { /\*\*@var $controller Shopware\_Controllers\_Frontend\_Index \*/ $controller = $arguments-\>getSubject(); $view = $controller-\>View(); $request = $controller-\>Request(); if ($request-\>getControllerName() !== 'index' || $request-\>getModuleName() !== 'frontend' || !$view-\>hasTemplate()) { return; } //Add our plugin template directory $view-\>addTemplateDir($this-\>Path() . 'Views/'); $view-\>extendsTemplate('frontend/test/index/index.tpl'); }`
