Page templates
SimplyEdit doesn't limit you to one page design. You can add as many as you like. All you need is sprinkling of javascript:
<script>
var templateSettings = {
'templates' : [
{name : "Homepage", template : "index.html"},
{name : "Blog", template : "blog.html"}
]
};
var myCustomSettings = {
'pageTemplates' : templateSettings,
};
</script>
And tell SimplyEdit to use these settings:
<script src="//cdn.simplyedit.io/1/simply-edit.js"
data-api-key="demo"
data-simply-settings="myCustomSettings"
></script>
Now you can create a new page and select the page template to use. Either open the sitemap dialog and press 'Add Page', or add a link in the current page and just follow it.
If you use SimplyStore to save your pages, make sure that the templates are in the templates/
directory, in the document root of your site. If SimplyStore can't find the template for a page, it will use the default one, e.g. index.html
.