CMS MADE SIMPLE FORGE

CGBlog

 

[#10018] The same image code outputs for detail but not summary template

avatar
Created By: tom mayman (mayman)
Date Submitted: Sun Jun 01 06:42:27 -0400 2014

Assigned To: Robert Campbell (calguy1000)
Version: 1.12.3
CMSMS Version: 1.11.10
Severity: Minor
Resolution: None
State: Open
Summary:
The same image code outputs for detail but not summary template
Detailed Description:
Hi,

Summary template seems to be ignoring : {$entry->image} whereas detail picks it
up fine?


History

Comments
avatar
Date: 2014-08-17 11:57
Posted By: Metamorphose (metamorphose)

Hi

I think my problem is the same. I've created addional fileds for images. The
follow code has worked with an older version

{if $entry->Blog_Bild}
{CGSmartImage
src="{$entry->file_location|replace:{root_url}:''}/{$entry->'Blog_Bild'}"
alias='blog_imagesmall'}
{/if}

With the new version the same code works in the detail template, but not in the
summary template. In the summary template no Image is displayed and the follow
PHP notice is displayed

Notice: Undefined property: stdClass::$Blog_Bild in
\htdocs\\lib\smarty\libs\sysplugins\smarty_internal_templatebase.php(165) :
eval()'d code on line 88