• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

html for optional elements

Participant ,
Apr 28, 2012 Apr 28, 2012

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.

TOPICS
Web apps

Views

495

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 29, 2012 Apr 29, 2012

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines