Simple Single Page

This software offer a easy way to produce a basic single page website


Features

This mini web application offers:

  1. Real Visual Edition of the content
  2. Easy templating
  3. Auto-generation of the menu
  4. Integration of
    • JQuery
    • Bootstrap
    • CKEditor (the WYSIWYG)
  5. NO SQL database
  6. sitemap.xml and robot.txt ready to use.



Installation

There are 1 and half steps to install this software:

  1. copy all the contents of singlepage/* in the root/* of the server;

If something don't work check the permission of the file sample.xml and edit.php to 776.



Personalization

Templating

Editing the file template.php you can change the visualization of your page.

For each tag editable you should provide some data:

  • id="id_of_the_tag" 
  • the attribute contenteditable to true
  • and the output of the variable $html['id_of_the_tag']

The auto generated menu

The application offer a auto generate menu. You should place in the  template.php file a ul tag with the class="menu". The ul should contain the id of the sible div (the editable div). For each h2 in the sible will be generate a entry in the menu. 

The menu is only active in the view mode.

Advanced settings

You can edit CDK configuration in edit.php to use other package by cdn.ckeditor.com.

And at the same time you can specify the plug-in to load or disable for advanced configuration.



Know issues

  1. write HTML/PHP code in the text will generate undefined behavior.