Streaming live at 10am (PST)

Hiding elements that have no content from CMS


#1

We are making a site with artist/singer profiles that is almost entirely CMS based. We have social links for the various artists, but some of the artists dont have all the social media accounts. Is there a clever way to hide those social icons that have no links?


#2

Yep. Check this site : http://candyshop.webflow.io/

See how only two of the records shown have a link to buy them online?
That’s a collection list.
The div that contains the text label + the link has a conditional visibility in the settings tab. The conditional visibility says "show this element if the field “URL to buy online” is set. So when there is no data entered, the whole line doesn’t show up.

Check the sharing link:
https://preview.webflow.com/preview/candyshop?preview=4a66108fe401388812bc6717a8c47e29

(Be aware that it doesn’t work if the data in question is taken from a referenced collection)


#3

Thank you Vincent! Worked like a charm