"Fast Edit v2.0" - edit your content right here on the page!
A sneak peak at the future of Fast Edit. This unreleased demo supports multi-level menus and sub-pages, and includes page comments, a layout switcher (1-column or 2-column) and style switcher, as well as all the usual stuff available in the current release, Fast Edit v1.0.
If you want to grab yourself some freebies...
- Download Fast Edit v1.0, the FREE, flat file CMS (demo), or
- Download Fast Edit BE, the Back-End Snippet Manager for multiple editable regions (demo).
Login / Try it out
For this demo, the "Admin Login" (top right) username is "admin2" and the password is "demo2".
Additionally in Fast Edit v2.0, you can login with the same details to manage the site from a dedicated Admin Area.
Once logged-in, Fast Edit appears at the bottom of the page, so scroll down to play!
Multi Regions (edit more than just one area of a web page!)
This page has multiple editable regions. When additional content snippets are present on the page you are editing, a dropdown select box will appear in the Fast Edit toolbar, where you can choose the region you want to edit.
About multiple regions
These extra content snippets are stored in the usual "fast_edit/_content/" folder and can only be created manually.
Naming the additional content files
Additional content snippets should use this naming convention; "main-filename--snippet-name.txt".
So for this page, the main content filename is "multi-regions.txt"
And any additional snippets on this page MUST start with "multi-regions--" (yes, the double-dash afterwards is very important and must also be included), followed by the snippet name; e.g "multi-regions--about.txt"
Including in a web page
Additional content snippets are included back into the parent .php page (in the root folder) like this;
<?php include($root.'multi-regions--about.txt');?>
Protecting your custom page
So now that your parent .php page has been customised and looks more like this;
<?php include('includes/header.html');?>
<div class="editable">
<?php include($contentpage);?>
<?php include($root.'multi-regions--about.txt');?>
<?php include($root.'multi-regions--naming.txt');?>
<?php include($root.'multi-regions--including.txt');?>
<?php include($root.'multi-regions--protecting.txt');?>
</div>
<?php include('includes/footer.html');?>
instead of the default;
<?php include('includes/header.html');?>
<div class="editable">
<?php include($contentpage);?>
</div>
<?php include('includes/footer.html');?>
you'll want to protect it from being deleted by adding it to the $page_protect() array in the "fast_edit/fast_edit_config.php" file.