Copy link to clipboard
Copied
I have a number of fields in a webapp ('website','image','email') which are optional fields. When displaying data from this app I only want to display the html container divs and spans around elements for which data exists, and omit them if it doesn't. Currently if, for instance, the website isn't submitted, it renders the link container div with a blank link element inside it - which is even worse than what I was expecting (nothing inside the containers.)
So is there any workflow for this in business catalyst? In another templating engine you might just test the data and use an if statement but I am new to this cms and if there's an option for logic in the editor I haven't found it.
Copy link to clipboard
Copied
Hi there kenneth,
There is plans for conditional and a new language layer called Liquid but this is not released yet.
You will need to use say jQuery for example and :isempty for example to remove or hide elements that do not contain content.