# Plugin: &quot;Glossar&quot;-Links / Content vor Ausgabe verändern

**URL:** https://forum.shopware.com/t/plugin-quot-glossar-quot-links-content-vor-ausgabe-verandern/21604
**Category:** Shopware 3.5
**Tags:** programming
**Created:** [29. Juli 2014 um 10:13 UTC](https://forum.shopware.com/t/plugin-quot-glossar-quot-links-content-vor-ausgabe-verandern/21604 "2014-07-29T10:13:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![m-phil](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@m-phil](https://forum.shopware.com/u/m-phil)
#### Post date: [29. Juli 2014 um 10:13 UTC](https://forum.shopware.com/t/plugin-quot-glossar-quot-links-content-vor-ausgabe-verandern/21604/1 "2014-07-29T10:13:57Z")

</div>

Hallo zusammen, ähnlich einem Glossar muss ich bestimmte Begriffe verlinken. Mein Problem ist der richtige Event/Hook und wie kann ich den kompletten Inhalt vor der Ausgabe noch einmal aufbereiten und an Smarty oder den View-Controller leiten? Mein Ansatz geht nur bis hier: ` public function install() { $event = $this-\>createEvent( 'Enlight\_Controller\_Action\_PostDispatch\_Frontend\_Detail', 'onPostDispatchDetail' ); $this-\>subscribeEvent($event); return true; } public static function onPostDispatchDetail(Enlight\_Event\_EventArgs $args) { $controller = $args-\>getSubject(); $request = $controller-\>Request(); $response = $controller-\>Response(); $view = $controller-\>View(); // Check if there is a template and if an exception has occurred if(!$request-\>isDispatched() || $response-\>isException() || !$view-\>hasTemplate() || $request-\>getModuleName() != "frontend" //|| $request-\>getControllerName() != 'index' ) { return; } // Get whole content $content = $view-\>Template()-\>getRenderedTemplate(); // Do something with content search/replace... echo $content; //return $content; //$view-\>render(); }` Ist getRenderedTemplate() überhaupt korrekt oder gibt es einen direkten Einstieg kurz vor der eigentlichen Ausgabe? Zur Info: Ich will es nicht via JS machen, da der Inhalt gecached werden soll.
