#
Slider
Upload featured documents, structure and manage data, files and multi-media assets
all inside the Solodev Media Center.
Your brand's content efforts go deeper than just words and blog posts. With the Solodev Media Center, you can add images and video elements to strengthen your content marketing efforts.
#
Prerequisites
- Have a Solodev CMS.
- Have a Website.
- Have a Slider Plugin. Like Slick, Flexslider, or Bootstrap Carousel.
Note:
For step-by-step instructions on adding a Module in your CMS, please visit Add a Module.
#
Create Slider
These steps will guide you through the process of installing Slider Module and adding it to your page.
- Download the Slider package.
- Add the module to your CMS.
- Go into the Module.
Create a file called
slider-repeater.tpl
on your prefer location. This file will contain the code for your slider.Follow the documentation of your preferred slider plugin to add the corresponding html code to your file.
Include or replace the code with the shortcodes where needed.
Insert your slider file into the page you want to display the entries on.
#
Shortcodes
You will need the following shortcodes to successfully add a Slider to your website. Depending on your needs, you might need to use extra shortcodes.
- repeater - prints the fields from the Slider module form.
[repeater id="" limit="0, 4" display_type="news" order="start_time desc"]
Note:
You need to add the ID number of your slider module to the repeater shortcode within the id=""
attribute.
- get_asset_file_url - returns the URL path to the specified asset file in the database.
<img alt="Image alt" class="img-fluid" src="[get_asset_file_url id={{slider_image}}]" />
event_title
- displays the name of the module's entry.
{{event_title}}
If you need to use other shortcodes or need to learn more about shortcodes, click here.
#
Support
Support for Slider Module is handled directly through Solodev's global help desk. For more information regarding support queries, go to www.solodev.com.