Hi
The Page Blocks module has been discontinued in favour of using actual pages and page templates and CGSimpleSmarty module to emulate Page Blocks. (see:
http://forum.cmsmadesimple.org/index.php/topic,22988.0.html)
It's great, it means that page blocks and the page structure are all kept together with the benefit of a clean and clear page structure and the ability to move page Block positions.
I have successfully replaced Page Blocks on all my pages except one where there is a need for nested page blocks. It all works except for the third level page (the Page Block nested within a Page Block) where only the actual {content} content shows up but {content block="Publication logo"} does not.
Here are snippets of the code used in the 3 templates that list Page Blocks of publications categories and then Page Blocks of the publications within these categories:
TOP LEVEL (main Publications page):
<td width="100%" align="left" valign="top" class="text">{content}<br />
{foreach from=$cgsimple->get_children('','',$children) item='child'}
{$cgsimple->get_page_content($child.alias)}
{foreach from=$cgsimple->get_children($child.alias,'',$subchildren) item='subchild'}
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="center" valign="top">{$cgsimple->get_page_content($subchild.alias,'Publication logo')}</td>
<td class="text" align="left" valign="top" width="100%">{$cgsimple->get_page_content($subchild.alias)}</td>
</tr>
</tbody>
</table>
{/foreach}
{/foreach}</td>
SECOND LEVEL (repeating 'Publications Categories'):
<span class="publicationhead">{content}<br /><div class="ruledashes"></div></span>
THIRD LEVEL (repeating 'Publications' for each 'Publications Category'):
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="center" valign="top">{content block="Publication logo"}</td>
<td class="text" align="left" valign="top" width="100%">{content}</td>
</tr>
</tbody>
</table>
Can anyone see where I'm going wrong? Is it possible to nest "Page Blocks" using this method?
Any help appreciated.
Thanks.