hi, i am trying to add a repeater of recipes connected to a database, so that when i click on it, lightboxes that explain the method would appear.
those lightboxes are also connected to a dataset. however, i am facing a couple of issues.
first, i dont see an option that allows me to connect the button to a lightbox.
second, i dont know how to make the navigations between the instructions. some recipes call for multiple steps and some are shorter and need less instructions.
i would love it if someone knows and is kind enough to share insights and wi(x)sdom with me about this.
thank you,
Shira
Hey @shira_ben_lavan!
Firstly, welcome to the community! Great to have you here.
To answer the question, you’re likely going to need to use a little code to get things going. Mainly, these 3 APIs getContext - Velo API Reference - Wix.com, https://www.wix.com/velo/reference/wix-dataset/dataset/setfilter and openLightbox - Velo API Reference - Wix.com (there may be one or two other things needed)
In the repeater, when the button is clicked, you need to get the repeater item data, and send it to the lightbox using the openLightbox
API. You’ll be sending the data to the lightbox. Then, you can either use that data directly, or you can use the _id
of the repeater item to filter the dataset in the lightbox.
Either way, this tutorial should be a good starting point for you
- https://www.youtube.com/watch?v=pIul9j8K9_g
2 Likes
It’s also worth noting that you can vote for that feature to be ‘native’ here > CMS Request: Dynamic Lightboxes | Help Center | Wix.com
1 Like