I have been asked to use components in CMS and all the page based on page.php
To do that, firstly, create template.ss and template-Edit.ss to control the components in the CMS, which means the content is not allow to write again. To edit the content, need to grab such as "HTML Editor" to create the content. And the main and mata_data in under a new one called Page Porperties.
the template.ss looks like:
<% control retrieveSlotItems(A) %>
<div class="slot sort$Sort $Component.class">
$Component
</div>
<% end_control %>
the template-Edit.ss looks like:
<div id="slots">
<table cellspacing="10">
<tr>
<td id="SlotA" class="slot" style="width:75%;height:211px">
<% control retrieveSlotItems(A) %>
$EditSegment
<% end_control %>
</td>
</tr>
</table>
</div>