MODULES
Siteglide Modules

Slider

8min
add images and content to your slides in admin and display on a site either using our custom layouts or creating your own prerequisites you've installed the slider module you've added slides in the admin introduction our slider module allows you to add images/content to slides within the admin, which can then be outputted as list views either using our pre built layouts or creating your own! we've chosen to use glidejs for our layouts, but you can use any plugin you prefer once you've installed the slider module on your site, you'll be able to find sliders in the left hand menu under modules/slider for a recap of how to install modules on a site, see here syntax {% include 'module' id '4' layout 'default' per page '20' show pagination 'false' sort type 'properties name' sort order 'asc' %} parameters id the module's id item ids output one or more module items, comma seperated category ids output all items in one or more categories, comma seperated layout default is /default/ 'layout' values are relative to the folder layouts/modules/slider(module 4)/\[layout name] per page defines the number of items outputted on the page sort type defines the type by which items are ordered properties name name of the module item (alphabetical) created at date the module item was created updated at date the module item was last edited properties weighting weighting of the module item properties release date date the item is set to be released sort order defines the order in which the type is sorted asc sort items in ascending order desc sort items in descending order show pagination this should be false uniq slider id used when outputting multiple of the same layout on one page liquid tags field name liquid tag description item name {{ this\['name'] }} name of the slide weighting {{ this\['weighting'] }} weight of item, used for sorting release date {{ this\['release date'] }} release date of the item expiry date {{ this\['expiry date'] }} expiry date of the item enabled {{ this\['enabled'] }} enable/disable the item title {{ this\['title'] }} title of the slide subtitle {{ this\['subtitle'] }} subtitle of the slide description {{ this\['description'] }} description of the slide button name {{ this\['button name'] }} button name button link {{ this\['button link'] }} button link unique slider id {{ uniq slider id }} slider's unique id layouts you can find all our slider layouts on layout libary , to copy these onto your site first create a folder in code editor, learn more here make sure your new slider layout has a list view folder within it, should look like this now copy the item/wrapper code into the list folder make sure to specify the layout name when including the module using the same layout multiple times on one page if you're using the same slider layout more then once on a page you'll need to add a "unique slider id" to your include {% include 'module' id '4' layout 'default' per page '20' show pagination 'false' uniq slider id '333' %} if this is added we'll run some extra logic on the layouts to ensure js is mounted to the correct layout glidejs we've chosen to build our layouts using the glidejs slider plugin, if you would like to customize our layouts further we'd recommend reading glidejs' documentation there are loads of different ways to build the sliders simply choose which type you suits you!