Invision Community 5: A video walkthrough creating a custom theme and homepage By Matt Thursday at 04:02 PM
Goza Posted October 31, 2021 Posted October 31, 2021 {{if !empty( $records ) }} <div class="ipsType_center"> <h2 class="title">{$title}</h2> <p class="desc">See what other people saying about us.</p> </div> <div class="ipsGrid ipsGrid_collapsePhone" data-ipsgrid data-ipsgrid-equalHeights="rows"> {{foreach $records as $record}} <div class='ipsGrid_span3 ipsBox'> <div class='ipsPadding'> <blockquote> {$record->content()|raw} </blockquote> </div> </div> {{endforeach}} </div> {{else}} be the first person {{endif}} How do I use {{else}} statement in a feed block display. It will not display at all for any of the database that I created along with the block itself.
opentype Posted October 31, 2021 Posted October 31, 2021 Haven’t tried but my guess is the block gets suppressed when there are no records, so the code isn’t even executed.
Goza Posted October 31, 2021 Author Posted October 31, 2021 Shucks. It really does look like the block gets suppressed. I tried replacing ! with no ! returns empty.
Recommended Posts