I want to show search results in a slide. How to do it?
function searchGemone() {
wixData.query('Stone')
.contains('title', $w('#input').value)
.find()
.then(results => {
$w('#fullWidthSlides1').item = results.items;
})
}
I am facing the problem with ‘.item’. How do send the results to the slide? .data/.item is not working.
As the search results will be dynamic, you cannot dynamically allocate the number of slides as of now.
One easy way would be to use a repeater with one item and then either connect it to a dataset, or you can use Velo to display the data. Display one item at a time, and use pagination, to show other items. One downside might be that there might not be a smooth slide like effect as in a slideshow.
I hope this helps 