Code: Select all
<ul>
{foreach from=$items item=entry}
{if isset($entry->story)}
<li>
<a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{eval var=$entry->story}</a></li>
{/if}
{/foreach}
</ul>
Code: Select all
<ul>
{foreach from=$items item=entry}
{if isset($entry->story)}
<li>
<a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{eval var=$entry->story}</a></li>
{/if}
{/foreach}
</ul>
Code: Select all
<ul>
{* foreach from=$items item=entry *}{* replace this with the following *}
{foreach from=$items item='entry'}{* notice the single quotes on entry *}
{if isset($entry->story)}
<li>
<a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{eval var=$entry->story}</a></li>
{/if}
{/foreach}
</ul>
Code: Select all
<ul>
{foreach from=$items item='entry'}
{if isset($entry->story)}
<li>
<a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{eval var=$entry->story}</a></li>
{/if}
{/foreach}
</ul>
Code: Select all
<ul>
{print_r|$items:0}
{foreach from=$items item='entry'}
{print_r|$entry:0}
{print_r|$entry->story:0}
{if isset($entry->story)}
<li>
<a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{eval var=$entry->story}</a></li>
{/if}
{/foreach}
</ul>
Code: Select all
<ul>
{$items|print_r:0}
{foreach from=$items item='entry'}
{$entry|print_r:0}
{$entry->story|print_r:0}
{if isset($entry->story)}
<li>
<a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{eval var=$entry->story}</a></li>
{/if}
{/foreach}
</ul>