by
KK » Thu Jun 11, 2015 2:15 pm
Hi,
A design that appears as 'one page' on the front-end need not necessarily mean that the back-end should also be a single template.
Suppose your single-page has 4 sections.
You already have an index.php template. Create a separate template for each of the other three sections e.g. 'about.php', 'contact.php' etc. You can set the executable='0' for these templates as we'll not be accessing them individually from the frontend e.g.
<cms:template executable='0' >..
Create editable regions in all templates as per your requirements.
Finally on index.php, use the cms:pages tag with masterpage set to the other templates to display data from those e.g.
- Code: Select all
<h2>ABOUT US</h2>
<cms:pages masterpage='about.php'>
...
</cms:pages>
<h2>CONTACT US</h2>
<cms:pages masterpage='contact.php'>
...
</cms:pages>
So now with this arrangement, each section has a separate link in the admin-panel. Yet, on the frontend they are all displayed on a single page.
Hope that helps.