Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted October 31, 20213 yr {{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.
October 31, 20213 yr Haven’t tried but my guess is the block gets suppressed when there are no records, so the code isn’t even executed.
October 31, 20213 yr Author Shucks. It really does look like the block gets suppressed. I tried replacing ! with no ! returns empty.