I have a CMSMS 1.9.4.1 with CGSimpleSmarty 1.4.8 and I have a problem. $cgsimple->get_page_content doesn't return anything at all
I have some code which is working out the page alias I need and puts it in a $pagealias variable. My code to display the content of the page is as follows:
Code: Select all
Pagealias is {$pagealias}
<!-- content should start here -->
{$cgsimple->get_page_content($pagealias, 'content_en'}
<!-- content should end here -->
I also get an error if I clear down the site cache or edit the page where the code is used, but only the first time I refresh. Error is:
Code: Select all
string(169) "Smarty error: [in globalcontent:get_page line 2]: syntax error: unrecognized tag: $cgsimple->get_page_content('p1', 'content_en' (Smarty_Compiler.class.php, line 446)" string(121) "Smarty error: [in globalcontent:get_page line 2]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
Cheers
Smotsie