I’m having the same problem - slideshow in CMS, conditional visibility: only show slide when image is set. But the blank slide is still showing up even when no image is set.
Thanks for getting in touch. At the moment visiblity conditions for slides do not work for the slider widget as that widget is not fully cms enabled yet. This means, it is not possible to suppress a slide, that you want to have not visible if there is not dynamic content due to a filter, condition, or non-existing content
There may be some workarounds until we add support for the cms and the slider, to be able to use dynamic features, but I do not have a timeline for this yet.
Thanks for the heads up. It’s a clever trick but webflow doesn’t allow more than 20 collection list items on one page. For me it would mean close to 50 list items
I am also having the same problem. I place a CMS collection inside the slide and set the slide background with CMS image. The each slide I tried to set with the conditional visibility if the CMS image is set. However it always has an extra blank slide.
I don’t know if any of you all are still looking for a solution but here it is.
The task: To force Webflow to actually remove the Slide after it has been made conditionally invisible.
The problem: Webflow is hiding the CMS content for the Slide but not the Slide architecture itself, thus the blank ghost slide.
The solution: Push a .remove() command directly to the Webflow js for whenever the conditional visibility is set to be hidden.
Why this is the best solution: No new collections, no complicated site architecture changes, just plug the following code right into the “Before Body Tag” section of your page and publish.
Super easy, and quick, even if you have a ton of collection items.
@Christian_Skelton I have it implemented on a CMS collection page to good effect. Can you describe the issue and/or your code placement in greater detail?
I’ve added your code to the ‘Before tag’ section of the template, but on some CMS items it still shows the blank slide, e.g The Guest Bedroom – Sussex Huts
Setting the visibility condition on the slide, and adding an image is the right structure.
However, if some of the slides are working and others are not, that is a solid clue that the issue may not be with the remove command, but with something else interfering on specific slides - giving us a preview link would help.