# product\_slider\_items.tpl not showing in a plugin

**URL:** https://forum.shopware.com/t/product-slider-items-tpl-not-showing-in-a-plugin/40671
**Category:** International (English Only)
**Tags:** themes--design
**Created:** [19. Oktober 2016 um 17:21 UTC](https://forum.shopware.com/t/product-slider-items-tpl-not-showing-in-a-plugin/40671 "2016-10-19T17:21:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![\_Elena](https://avatars.discourse-cdn.com/v4/letter/_/d07c76/32.png) [@\_Elena](https://forum.shopware.com/u/_Elena)
#### Post date: [19. Oktober 2016 um 17:21 UTC](https://forum.shopware.com/t/product-slider-items-tpl-not-showing-in-a-plugin/40671/1 "2016-10-19T17:21:31Z")

</div>

Good evening,

in a plugin with 5.2 system, I would like to edit the template used in the slider, for example in a page with this url:

[http://mypersonal.site/widgets/emotion/productStreamArticleSlider/streamId/1/productBoxLayout/slider?start=0&limit=6](http://mypersonal.site/widgets/emotion/productStreamArticleSlider/streamId/1/productBoxLayout/slider?start=0&limit=6)

The template folder „Resources/view“ is loaded (because other \*.tpl in the plugins are loaded), but if I extend „frontend/\_includes/product\_slider\_items.tpl“ in my plugin, the system loads the original „product\_slider\_items.tpl“ in Bare theme instead. I already cleared the cache and compiled the theme but it still doesn’t load.

Any clues on how can I modify „product\_slider\_items.tpl“ in my own plugin?

**Edit**

I tried to user _productBoxLayout_ parameter and choose my own template in _frontend/listing/box\_article.tpl_, the parameter is passed, but I have the same problem: **_box\_article.tpl_ of the plugin is not loaded**!

My frontend/listing/box\_article.tpl is this:

```
{extends file="parent:frontend/listing/box_article.tpl"}

{block name="frontend_listing_box_article_includes_additional"}   
    {if $productBoxLayout == 'myslider'}
        {include file="frontend/listing/product-box/box-myslider.tpl"}
    {else}
        {include file="frontend/listing/product-box/box-basic.tpl" productBoxLayout="basic"}
    {/if}
{/block}

```

**Solved**

In **_getSubscribedEvents()_** I called **_Enlight\_Controller\_Action\_PostDispatchSecure_** instead of **_Enlight\_Controller\_Action\_PostDispatchSecure\_Frontend_** because the sliders are under Widgets and not Frontend, I don’t specify Widget because I also need to trigger the templates for the frontend:

```
public static function getSubscribedEvents()
    {
        return array(
            'Enlight_Controller_Action_PostDispatchSecure' => 'addTemplateDir',
        );
    }

```

&nbsp;
