# CMS Blöcke in TWIG Template nutzen?

**URL:** <https://forum.shopware.com/t/cms-bloecke-in-twig-template-nutzen/94865>\
**Category:** Programmierung\
**Created:** [17. Juni 2022 um 08:39 UTC](https://forum.shopware.com/t/cms-bloecke-in-twig-template-nutzen/94865 "2022-06-17T08:39:53Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![zlep](https://avatars.discourse-cdn.com/v4/letter/z/9de0a6/32.png) [@zlep](https://forum.shopware.com/u/zlep)\
**Post date:** [17. Juni 2022 um 12:42 UTC](https://forum.shopware.com/t/cms-bloecke-in-twig-template-nutzen/94865/5 "2022-06-17T12:42:50Z")

</div>

@abdullah  
Super, vielen Dank für deine Unterstützung. Wirklich super. 🙂

Das hier wäre wahrscheinlich genau das was ich suche?

> [@How to pass data to this storefront view page using events ?](https://forum.shopware.com/t/how-to-pass-data-to-this-storefront-view-page-using-events/64912/2):
>
> We can pass custom data to view the page by using StorefrontRenderEvent &nbsp; &nbsp; public static function getSubscribedEvents(): array &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; return [&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StorefrontRenderEvent::class =\> ‘onStorefrontRender’ &nbsp; &nbsp; &nbsp; &nbsp;]; &nbsp; &nbsp; } &nbsp; &nbsp; public function onStorefrontRender(StorefrontRenderEvent $event) &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; $route = $event-\>getRequest()-\>get(’\_route’); &nbsp; &nbsp; &nbsp; &nbsp; if($route == ‘frontend.product.reviews’) &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;$event-\>setParameter(‘testParam’, ‘testParamValue’); &nbsp; …

Als route dann _frontend.home_, wenn ich es nur auf der Homepage benötige, damit es nur dort ausgeführt wird, meinst du, oder?

Schönes WE.

---

_[View the full topic](https://forum.shopware.com/t/cms-bloecke-in-twig-template-nutzen/94865)._
