CMS MADE SIMPLE FORGE

CGCalendar

 

[#3164] Smarty error in the default list template

avatar
Created By: Alexis du Saussay (aSa)
Date Submitted: Sat Mar 14 07:13:10 -0400 2009

Assigned To: Robert Campbell (calguy1000)
Version: 1.0
CMSMS Version: None
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
Smarty error in the default list template
Detailed Description:
With a fresh install of  CGCalendar 1.0, I get a Smarty's error  while using the
command
{cms_module module='CGCalendar' display='list'}

---------------
string(138) "Smarty error: [in module_db_tpl:CGCalendar;list_Sample line 5]:
syntax error: mismatched tag {/if}. (Smarty_Compiler.class.php, line 2300)"
string(153) "Smarty error: [in module_db_tpl:CGCalendar;list_Sample line 35]:
syntax error: unclosed tag \{if} (opened line 34). (Smarty_Compiler.class.php,
line 317)"
--------------


it seems there is a mistake in the "sample" template from "list templates" tab.

I've suggested a fix in the forum 
"Cut the {/if} on line 5
and paste it at the end of the template just before the last </div>"
http://forum.cmsmadesimple.org/index.php?topic=31630.msg150750

--------------------------------------------------------------

Another problem on the same template :

a few lines before the end there is 
<a href="{$event.url}">{$mod->Lang('more')}</a>  
which give an error "--Add Me - module:CGCalendar string:more--"

according to the language files it probably should be "Lang('cal_more')"


History

Comments
avatar
Date: 2009-03-24 15:25
Posted By: Robert Campbell (calguy1000)

fixed in svn.
      
Updates

Updated: 2011-12-23 10:40
cmsms_version_id: => -1
state: Open => Closed

Updated: 2009-03-24 15:28
resolution_id: 5 => 7

Updated: 2009-03-14 07:29
description: With a fresh install of CGCalendar 1.0, I get a Smarty's error while using the command {cms_module module='CGCalendar' display='list'} ------------------ string(138) "Smarty error: [in module_db_tpl:CGCalendar;list_Sample line 5]: syntax error: mis => With a fresh install of CGCalendar 1.0, I get a Smarty's error while using the command {cms_module module='CGCalendar' display='list'} --------------- string(138) "Smarty error: [in module_db_tpl:CGCalendar;list_Sample line 5]: syntax error: mismat
resolution_id: => 5