I need to make an summary template, that is showing 1 article, if the checkbox is checked.
Code: Select all
{foreach from=$items item=entry}
{if $entry->fieldsbyname.tophistorie->value}
<a class="thlink" href="{$entry->moreurl}">
<div id="thlinkholder">
<div id="thtextholder">
{$entry->title|cms_escape}
</div>
</div>
</a>
<div id="thimgholder">
<img src="{$entry->file_location}/{$entry->fieldsbyname.image->value}" height="100%" width="100%"/>
</div>
{/if}
{/foreach}
so if i write {news summarytemplate="template" number="1"}
it is working fine, but if the latest article havent a checked checkbox, it will post no articles any idea?