Jump to content

Custom block won't display


simonle

Recommended Posts

Posted

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"}

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...