# SW 6; Add '"autoplay": true' to crossell slider?

**URL:** https://forum.shopware.com/t/sw-6-add-autoplay-true-to-crossell-slider/65800
**Category:** Themes & Design
**Created:** [27. März 2020 um 08:56 UTC](https://forum.shopware.com/t/sw-6-add-autoplay-true-to-crossell-slider/65800 "2020-03-27T08:56:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![julianmurillo](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@julianmurillo](https://forum.shopware.com/u/julianmurillo)
#### Post date: [27. März 2020 um 08:56 UTC](https://forum.shopware.com/t/sw-6-add-autoplay-true-to-crossell-slider/65800/1 "2020-03-27T08:56:45Z")

</div>

Hi everyone

I’m new to Shopware, so i was wondering the following:

vendor/shopware/storefront/Resources/views/storefront/page/product-detail/cross-selling/tabs.html.twig has the following piece of code:

```
{% sw_include "@Storefront/storefront/element/cms-element-product-slider.html.twig" with {
    sliderConfig: config,
    element: {
        'data': {
        'products': {
            elements: item.getProducts()
        }
    },
    type: 'product-slider'
    }
} only %}

```

And&nbsp;vendor/shopware/storefront/Resources/views/storefront/element/cms-element-product-slider.html.twig specifies the following:

```
data-product-slider-options='{
    {% if sliderConfig.elMinWidth.value %}"productboxMinWidth": "{{ sliderConfig.elMinWidth.value }}",{% endif %}
    "slider": {
    "gutter": 30,
        "autoplayButtonOutput": false,
        "nav": false,
        "controls": {% if sliderConfig.navigation.value %}true{% else %}false{% endif %},
        {% if not sliderConfig.navigation.value %}"mouseDrag": true,{% endif %}
        "autoplay": {% if sliderConfig.rotate.value %}true{% else %}false{% endif %}
     }
}'>

```

So i was wondering how to include ‚cms-element-product-slider.html.twig‘ in a way that autoplay would be defined to ‚true‘.

Any ideas would be highly appreciatted.&nbsp;

---

<div class="post-metadata">

### Author: ![julianmurillo](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@julianmurillo](https://forum.shopware.com/u/julianmurillo)
#### Post date: [1. April 2020 um 08:07 UTC](https://forum.shopware.com/t/sw-6-add-autoplay-true-to-crossell-slider/65800/2 "2020-04-01T08:07:57Z")

</div>

A solution for this seem to be to extend tabs.html.twig&nbsp;and to adjust&nbsp;the configuration values of the slider
