Last updated: Jul 20, 2018

Sliders Field

The Sliders Field returns a Slider element with all your Slider info. You can display your slider using the displaySlider() method

{% set slider = entry.sliderField.first() %}

{{ slider.handle }}
{{ slider.wrapperClass }}
{{ slider.thumbClass }}
{{ slider.assetTransform }}
{{ slider.thumbTransform }}

{# DISPLAY SLIDER #}
{{ slider.displaySlider() }}

getSlides() #

You can fetch your Slides using the getSlides()   available in the Slider element. 

{% set slider = entry.sliderField.first() %}
{% set slides = slider.getSlides() %}

{% set url = slides[0].getUrl() %}
<img src="{{url}}" alt="{{slides[0].title}}">

{{ slides[0].enupalSliderHtml|raw }}
{{ slides[0].enupalSliderLink }}
{{ slides[0].enupalSliderOpenLink }}