I have a top bar notification that the client wants to be able to control and turn off/on using the CMS editor. I gave tried playing around with switches and conditional visibility to get this working, but had to joy. Is this even possible to do in Webflow CMS and if so how would I go about it?
I am not sure if I am fully understanding this, but if you want the visibility control inside the CMS editor the best thing would be to make “a hidden variable”.
To do this, I like to create a text block field named “Visibility” (or whatever you want) and inside the text of the item put “true” or “false”
In the CMS item itself this is where you want to change true/false:
after add your condition on the item wrapper or what ever you would like hidden.
The below example shows the grids are hidden if they are false. I could have placed it on the wrapper if I wanted to completely remove the item, however, for this example I wanted to keep the event titles.
Hey, thanks for your assistance. I was already half-way there with the on/off switch. It just needed it to be in the CMS and using the ‘empty state’ as the effective hidden element. Working now, thanks.