I have set up CGBlog with a couple of categories. I am trying to show a summary view on the home page, but only showing one of the categories.
However when I use
Code: Select all
{CGBlog summarytemplate="promotion" detailpage="promotions" category="Promo" }Summary template:
Code: Select all
{if isset($error)}{cgerror}{$error}{/cgerror}{/if}
{foreach from=$items item=entry}
<div class="homePromo1of2">
<div class="homePromoContent">
{if $entry->fields.mainimage}
<img src="{$entry->file_location}/{$entry->fieldsbyname.mainimage->value}"/>
{/if}
<h3><a href="{$entry->detail_url}" title="{$entry->title|escape:htmlall}">{$entry->title|escape}</a></h3>
{if $entry->summary}
{eval var=$entry->summary}
{else if $entry->content}
{eval var=$entry->content}
{/if}
{if $entry->categories}
<div class="CGBlogSummaryCategory">
{strip}{$category_label}
{foreach from=$entry->categories item='category'}
{$category.name}
{/foreach}
{/strip}
</div>
{/if}
</div>
</div>
{/foreach}CMSMS Version 1.11.11
CMS details
CGBlog 1.12.8
CGCalendar 1.14.4
CGExtensions 1.44.3
CGSimpleSmarty 1.7.4
CMSMailer 5.2.2
CMSPrinting 1.0.5
Captcha 0.5.0
FileManager 1.4.5
FormBuilder 0.8
JQueryTools 1.3.4
MenuManager 1.8.6
MicroTiny 1.2.7
ModuleManager 1.5.8
News 2.14.4
Search 1.7.11
ThemeManager 1.1.8
I am running a local development environment, MAMP Pro 2.2 and have tried switching between PHP 5.3.27 and 5.4.19 with no change.
CMS Config
php_memory_limit
process_whole_template
max_upload_size 32000000
url_rewriting none
page_extension
query_var page
image_manipulation_prog GD
auto_alias_content true
locale
default_encoding utf-8
admin_encoding utf-8
set_names true
debug false
timezone Europe/London
set_names true
set_names
root_url http://localhost:8888/foundation
ssl_url https://localhost:8888/foundation
root_path Success /Applications/MAMP/htdocs/foundation (0755)
previews_path /Applications/MAMP/htdocs/foundation/tmp/cache (0755)
uploads_path /Applications/MAMP/htdocs/foundation/uploads (0755)
uploads_url http://localhost:8888/foundation/uploads
image_uploads_path /Applications/MAMP/htdocs/foundation/uploads/images (0755)
image_uploads_url http://localhost:8888/foundation/uploads/images
ssl_uploads_url https://localhost:8888/foundation/uploads
use_smarty_php_tags
PHP
Current PHP Version (phpversion) 5.3.27
md5 function (md5_function) On (True)
GD version (gd_version) 2
tempnam function (tempnam_function) On (True)
Magic quotes in runtime (magic_quotes_runtime) Off (False)
Is E_STRICT disabled in error_reporting (E_STRICT) Success
Is E_DEPRECATED disabled in error_reporting (E_DEPRECATED) Success
PHP Effective Memory Limit (memory_limit) 32M
Maximum Execution Time (max_execution_time) 60
PHP output_buffering (output_buffering) On
PHP Safe Mode (safe_mode) Off (False)
File uploads (file_uploads) Success On (True)
Maximum Post Size (post_max_size) 32M
Maximum Upload Size (upload_max_filesize) 32M
Session Save Path (session_save_path) /Applications/MAMP/tmp/php (0775)
Sessions are allowed to use Cookies (session_use_cookies) On (True)
Basic XML (expat) support (xml_function) On (True)
Checking for the XMLReader class (xmlreader_class) On (True)
Checking if the httpd process can create a file inside of a directory it created (create_dir_and_file)
PHP register_globals (register_globals) Off (False)
disable_functions in PHP (disable_functions) Success
PHP Open Basedir (open_basedir) Success
Test for remote URL (test_remote_url) Success
fsockopen: Connection ok! Success
fopen: Connection ok! Success
Test ini_set (check_ini_set) On (True)
Test for the curl library (curl) On
Test curl version (curlversion) version 7.28.1, minimum recommended version is 7.19.7
Any help would be gratefully received.
Thanks



