I would like to display more than one cmsms page on one page, but all rendered with the template assigned to it... Tried PageBlocks on 1.9.3 but nothing just white screen

Thx
Code: Select all
global $gCms;
$cntnt = $gCms->getContentOperations();
$page_alias = $params['page_alias'];
$page_data = $cntnt->LoadContentFromAlias($page_alias);
$page_content = $page_data->mProperties->mPropertyValues['content_en'];
$smarty->assign($params['assign'], $page_content);
Code: Select all
{get_page page_alias='home' assign='home_content'}
{eval $home_content}
Code: Select all
string(132) "Smarty error: [in content:content_en line 10]: syntax error: invalid attribute name: '$about' (Smarty_Compiler.class.php, line 1550)"
Hmm.. It worked for me.. I am running an older version however.. I'll look at it later today with one of my newer installs.[MaGuS] wrote:As I try to understand the code seems to me that it will display the "content" block of the page but without the template assigned to it... Am I right?
Code: Select all
[mPropertyValues] => Array
(
[target] =>
[image] =>
[thumbnail] =>
[extra1] =>
[extra2] =>
[extra3] =>
[searchable] =>
[pagedata] =>
[disable_wysiwyg] =>
)
Code: Select all
{* display the content_en block from a specific page *}
{cgsimple->get_page_content('some_page_alias','content_en','tmp')}
{eval var=$tmp}
Code: Select all
{cgsimple->get_children('','children'}
{if $children}
{foreach from=$children item='child'}
<div class="child_content">
{cgsimple->get_page_content($child.alias,'content_en','tmp'}
{eval var=$tmp}
</div>
{/foreach}
{/if}
Code: Select all
<h1>PAGE 1 TITLE</h1>PAGE 1 CONTENT TEXT<hr />
<h2>PAGE 2 TITLE</h2>PAGE 2 CONTENT TEXT<h3>TheEnd</h3>
<h1>PAGE 3 TITLE</h1>PAGE 3 CONTENT TEXT<hr />
Code: Select all
PAGE 1 CONTENT TEXT PAGE 2 CONTENT TEXT PAGE 3 CONTENT TEXT