Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
simonle Posted May 5, 2015 Posted May 5, 2015 Any idea why this custom block won't display when I insert it in Pages? It looks fine in the block-preview window. The default code doesn't work either.The code for the block: {{foreach $records as $record}} <div class="coverStory1"> <img class="coverImg1" src="{$record->record_image}"> <div class='cover1title'> <div class="ipsCommentCount ipsPos_right {{if ( $record->record_comments ) === 0}}ipsFaded{{endif}}" data-ipsTooltip title='{lang="replies_number" pluralize="$record->record_comments"}'>{expression="$record->record_comments"}</div> <h2><a href="{$record->url()}" title='Read story'>{wordbreak="$record->_title"}</a></h2> <span class='ipsType_light ipsType_small'>{lang="byline_nodate" htmlsprintf="$record->author()->link()"} · {datetime="$record->mapped('date')"}</span> </div> </div> {{endforeach}} And the template key:{block="cover_story_one"}
Recommended Posts
Archived
This topic is now archived and is closed to further replies.