BoldMinded acquires Ansel, support ending for all add-ons. BoldMinded acquires Ansel, support ending for all add-ons. Read More →
Support has been discontinued. Issues remain available as an archive. Support has been discontinued. Issues remain available as an archive.
Conditional Not Displaying Content
#115 opened by Deanna Wallace
Description
I'm trying to show a section of my site only if Ansel has images in that section, but when I add the conditional as described in the documentation, the section won't appear. The section and images do appear when the conditional code is removed:
{if "{art_app count='true'}" > 0}
<section class="whiteBack content">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2 col-sm-12">
<h2>Art Gallery</h2>
<h3>{app_artdescription}</h3>
<h4>click to enlarge</h4>
</div>
</div>
<div class="row imageWrap">
{app_art}
<div class="col-sm-H col-sm-offset-1 squareImage animated" data-animation="fadeInUp" data-animation-delay="400">
<a href="{img:url}" class="mobx" data-rel="art"><img src="{img:url}" alt="" class="img-responsive" /></a>
</div>
{/app_art}
</div>
</div>
</section>
{/if}
Replies
- Deanna Wallace
Replied 8/8/2018 2:26 PM, Edited 11/1/2018 7:46 PM
Sorry, I don't know how to use Markdown. A link to instructions might be helpful but here's a screenshot of what I was trying to refer to:
https://www.dropbox.com/s/g31o8wxgfbktc6r/Screen Shot 2018-08-08 at 3.23.50 PM.png?dl=0
- Deanna Wallace
Replied 8/8/2018 2:28 PM, Edited 11/1/2018 7:46 PM
This has been resolved, sorry for the multiple postings!
- TJ Draper
Replied 8/9/2018 10:16 AM, Edited 11/1/2018 7:46 PM
Hi Deanna,
The markdown was almost right. The only problem was the three backticks to indicate the code fence needed to be on a line by themselves.
So you've got everything you need?