The problem is: In the older version Images was added to the news articles as CONTENT via the wyzwig editor. So the url to those images is upload/images/image.jpg...
But my news summary template assumes that images are linked to every news_id. If an article doen't have a image it displays a default image. (see below)
Code: Select all
{foreach from=$items item=entry}
<div class="news-item animation-top">
<figure class="bg-img">{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
{if $field->type == 'file'}
{if isset($field->value) && $field->value}
<img src="{$entry->file_location}/{$field->value}"/>
{/if}
{else}
<img src="uploads/images/img-01.jpg"/> <!-- default image -->
{/if}
{/foreach}