Iteration child pages > reading ECB vars
Posted: Sun May 08, 2016 6:05 am
Hi,
I'm running a website for a school on CMS Made Simple v1.12.1
I've put all our courses as a child from "Course Map".
On the course page I use ECB for the schooldays, something like the following ...
On page "Course Map" I want to make an overview with the schooldays (checked).
I've made an GCB with the following code ...
I fail to read the lesson days in the iteration. I know simply using var {$day_mo} is not working in this iteration but how to get the ECB vars in this iteration?
Someone help me with this?
Regards
I'm running a website for a school on CMS Made Simple v1.12.1
I've put all our courses as a child from "Course Map".
On the course page I use ECB for the schooldays, something like the following ...
Code: Select all
{content_module module="ECB" field="checkbox" block='day_mo' assign="day_mo" label="Monday" tab='Accent options'}
{content_module module="ECB" field="checkbox" block='day_tu' assign="day_tu" label="Tuesday" tab='Accent options'}
{content_module module="ECB" field="checkbox" block='day_we' assign="day_we" label="Wednesday" tab='Accent options'}
...
I've made an GCB with the following code ...
Code: Select all
<table>
{foreach from=$cgsimple->get_children('','',$children) item='child'}
{if $child.show_in_menu}
<tr><td>{$cgsimple->get_page_title($child.alias)}</td><td>{$day_mo}</td>...</tr>
{/if}
{/foreach}
<table>
Someone help me with this?
Regards