Dynamic slide generator functionality

Generators dynamically create slides using different sources, like WordPress posts, Joomla articles, Magento products, Facebook pages, Instagram feed, etc...

How does it work?

Generators work the way that you can create a dynamic slide

where you can pick a source (like posts, articles, facebook page, twitter account) 

and then you will have some options, like categories, tags or something to filter out the specific content you want to have in your slider from this source, what you can read at that specific source's documentation, and also lower here

and after you chose the settings and saved on it, you will get the different texts (description, title, url to intro image) in variables. You can use those variables in your slide editor inside the layers, or at your slide settings.

If you hover over the input areas in your slide editor, you will see a VARIABLE text appearing, which marks where you can put variables.

Click on that sign and pick a variable, which will write the text contained by that variable into the selected area and you can also use our advanced generator functions to get for example an image from the description, or to remove the html code from a text, which is necessary if you want to use our slider's font settings, maybe to limit the length of your text, to make sure, that it won't be something too long.

After you put your variables, where you want them, it will show the text or other data of the first slide, and this is how all your slides will look like, just with their texts/datas. Then you will receive the new data every time, when the cache expiration time has ended.

You can even create multiple generators in one slider, because the generators are handled as slides. Check out the  videos lower to see a creation process!

Generator settings

You can access the settings of your generator, if you click on Edit generator in your slide list or at the creation of your dynamic slide.

Slides

This is how much slides will be created with your generator. Later you will be able to find this option in the Slide editor too.

Record Expert

  • Start index - This number will define from which result should your variables start.
  • Group result - You can have multiple result variables on one slide, so you don't need to have for example one post/article on one slide, but you could have two, three or more posts/articles on one slide, and the next two, three, more posts and articles would get into the next slide, and so on.

Group result example

If you have an Image from folder generator, and you have 10 images (for example: image1.png, image2.png, ..., image10.png) in the selected folder, you will have 10 results. If the group result is 1, then 1 result will go into one slide:
1st slide - image1.png
2nd slide - image2.png
3rd slide - image3.png
....
10th slide - image10.png


But if you increase this value, that many results will get into one slide. For example if the group result is 2:
1st slide - image1.png, image2.png
2nd slide - image3.png, image4.png
3rd slide - image5.png, image6.png
4th slide - image7.png, image8.png
5th slide - image9.png, image10.png


If there isn't enough result to have all the given group results on the last slide, those results won't be on the slides, for example group result 3:
1st slide - image1.png, image2.png, image3.png
2nd slide - image4.png, image5.png, image6.png
3rd slide - image7.png, image8.png, image9.png

So image10.png isn't used in your slides, but if you put two more images into that folder (image11.png, image12.png), then there will be 3 results for the last slide too:
1st slide - image1.png, image2.png, image3.png
2nd slide - image4.png, image5.png, image6.png
3rd slide - image7.png, image8.png, image9.png
4th slide - image10.png, image11.png, image12.png


In the slide editor you will see the increased number of variables.

Record viewer

You can check what texts are inside your variables. Basically this option is only for knowing more about your generator, but it doesn't change anything inside your slides. So feel free to check this anytime, as it can't mess up anything.

Cache expiration

The generator works from cache, and this is how often it will query the new data. It works this way, because if the cache expiration time is 24 hours, and let's say you will get 100 visitors a day, who will check 5 of your pages (which show this slider), then our slider will only go through the database and the longer php codes once in a day. However, if you set it to 0 to make your data appear immediately, then it will go all 500 times through them. A slider isn't the main content, it's just to advertise them, so you shouldn't care about not having your contents there right when you create them, but if you don't mind sacrificing your pages' speed, then change the Cache expiration time to 0. You can also refresh the cache manually, as you can read here.

Refresh cache manually

If you don't want to wait until the cache expiration time ends and you want to see the new content immediately, you can either refresh the cache manually at your slider's dashboard with the Clear slider cache button.

or you can refresh all generators for all sliders at the Global settings with the Clear cache button.

Video tutorials

WooCommerce - Smart Slider 3.1

Joomla Article Slider - Smart Slider 3.0

WordPress Fullwidth Post Slider - Smart Slider 3.0

WordPress Carousel Post Slider - Smart Slider 3.0