Hello
i have a dataset and dynamic pages and i want to show or hide a button to play a video if there is data. So if data exists in the dataset for the page for a video url then i want a button to show.
i also want to link the button to another hidden element or even show a lightbox with a video player in in it.
Is this even possible? I have my data set, my dynamic page, my lightbox with the video but i cant seem to find a way to play this specific video on this page only
I made you a short tutorial. Hope this helps you:
hi yall
I have similar question/challenge and I'm not good at coding so bear with me. I have made a dataset for a dynamic page: https://www.danishjazz.com/artists
Under each artists, there are four buttons: Instagram, facebook, listen and website. Some artists donøt have an instagram so how do I hade that button on the respective artist profile site? Example: https://www.danishjazz.com/artist/5-go-adventuring-again
Thanks matanya. the code worked.
no video
Everyday D (Distance) (threedesignviz.com)
with video
Ultimate Mobile (threedesignviz.com)
Hi @Shiri Mahler @Shiri Mahler that is a great post but it doesnt help me how to hide items if there is no data present in my database. if i have a text field and there is no data, the space is empty or blank. If i have a button connected to my dataset and the dataset has no data the button is visible but doesn't work. I can do this. but it means that on 5 pages there will be a button not working and on two it will work.
Hello @Russell Hunte,
I'm Shiri from the Editor X team, Thanks for reaching out.
Conditional hide & show could be achieved with a few lines of Velo code.
The Velo forum has some good sources for help in these cases.
Here is a relevant post that shows something similar:
I don't understand how a screenshot will help. Do you understand what my problem is? I want to trigger a lightbox using a button which is only visible if the data in the context of the page matches the condition set in the button code.
can you send me a screenshot ?
You can set in the collection Data on the page (little icon) When you go into settings you can set a filter. Like when this is or isn't etc. I hope that helps