I have a slider with images and the last slide always displays some text pulled from a structure field. The problem is sometimes I don’t want to add any text and at the moment I get an empty slide when I don’t add any content. I want to only show the last slide if the structure field is not empty. I’ve already tried a few things but I can’t make it work, either I completely delete the text slides from all the projects or it just keeps showing blank slides for the projects without text.
I tried it already but it doesn’t work and I dont know why! Basically I want to only show a slide if at least one field is not empty it doesn’t have to be the description but I am not able to achieve this
Thank you I will try this, all the fields are optional that’s why if all are empty the slide should not be shown! Is there a way to query all of them together or do I need to enter it manually? Thank you ao much for your help
Do you have a screenshot of how the slider including text should look like? <p class="info-name"> and <p class="info-description"> are repeated, but as you use numerous field names, it is difficult to create a compact representation without knowing what the slider looks like.
I just realised that if I delete the field from the panel and only add it when I want to add text in the panel, the slider no longer shows an empty slide this way I don’t need to query the fields if all of them are empty. thank you so much for your help and tip regarding the name, I will change the function name!