Any help advice appreciated.
I have installed CGBlog, and added extra fields, one of which is an image field. I have used the default sample detail template, but this doesn't show the image field. It is almost as if the field type, file, isn't working. The image value is shown in the list of extra fields with it's field name. (I did a test and hadn't altered the template at all)
So, I created a template and used this code instead of the default:
Code: Select all
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
{if $field->name == 'Picture'}
<img src="uploads/cgblog/id{$entry->id}/{$field->value}"/>
{/if}
{/foreach}
{/if}
I'm running the latest CMSMS 1.11.7 “Genovesa” with all modules up-to-date:
CGBlog 1.9.12
CGExtensions 1.35
CGSimpleSmarty 1.6.2
CGSmartImage 1.10.10
CMSMailer 5.2.1
CMSPrinting 1.0.4
FileManager 1.4.3
FormBuilder 0.7.3
MenuManager 1.8.5
MicroTiny 1.2.5
ModuleManager 1.5.5
News 2.12.12
Search 1.7.8
ThemeManager 1.1.8
Current PHP Version 5.3.2
everything is ticked apart from E_Deprecated, which is enabled.
Running on a local MAMP solution.
Thanks for any help.
PS. When I click on the module in the admin, everything seems fine. But when I try and navigate to a separate section it seems to freeze. I have given the module a friendly name of "Case Studies"
PPS: I have changed the options to:
URL template to just
and{$title}
Prefix to use on all URLs to "case_studies"
Although I am not using pretty urls at this moment