1 Reply Latest reply on Apr 29, 2012 4:49 AM by Liam Dilley

    html for optional elements

    kenneth_rapp Level 2

      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.