Skip to content

_mx_slider

Wayne Roddy edited this page Oct 19, 2015 · 3 revisions

A slider is a basic section of rotating images

The MXT Feature Call to be placed where you want it rendered:

[[$mxt.feature_slider_[[++mxt.theme]]]]

that contains this:

[[*slider_ids:notempty=`
  [[!getResources? 
    &parents=`-1` &resources=`[[*slider_ids:is=`default`:then=`[[++mxt.default_slider]]`:else=`[[*slider_ids]]`]]` 
    &tpl=`tpl.feature_slider_[[++theme]]`
    &includeTVs=`1` &processTVs=`1` &tvPrefix=`tv.`
    [[*slider_ids:notempty=`&sortby=`FIELD(modResource.id, [[*slider_ids]] )` &sortdir=`ASC``]]
  ]]
`]]

Which says if you have something in the TV continue. If you put "default" get the default ID's from the context setting, else get the ID's from the Resource.

We have a YouTube Video to explain this feature.

Clone this wiki locally