No Longer Maintained
A simple CMS for Landing Pages.
v0.0.6 Be careful! While that is an alpha version.
I wrote this CMS for myself and want to share it for everyone. Landing CMS is a simple tool for management landing pages. It doesn't use any databases. All data stores in a plain text files. You need only web-server with PHP 5.2 or newer (7 and 7.3 supports)!
For using the CMS you should copy all files from this repository to root directory of your site. Now you need config permissions.
You should set 777 permissions for upload and DB directories:
If helper show that all is done you should going to Admin panel:
How to use
In the Admin panel you can create Fields with 7 formats:
- Multiple line text
- WYSIWYG Field
- Color Picker
- File Uploader
- Group of Fields
Then, when you want to use your Fields in your files you need to connect Controller to your file.
<?php // Connecting the public controller require_once('assets/controller.php'); ?> <html> ...
You can to call your Fields by Alias.
<html> <head> <title><?=$get['title'];?></title> ...
If you want to use checkboxes you need to check the values of equality 'on'.
<body> ... <?php if($get['maintenance_mode'] == 'on'): ?> <h1>Try again later</h1> <?php else: ?> <h1>Hello, World!</h1> <?php endif; ?> ... </body>
If you created a Group, you can call its specific element.
<p> <?=$get['main_group']['item1'];?> </p>
You can also iterate through each of the Group's elmenets. (Subgroup or Field).
<?php foreach($get['main_group'] as $name => $item): ?> <ul> <li><b><?=$name;?>:</b> <?=$item;?>;</li> </ul> <?php endforeach; ?>
If you need use any modules you can creat these in
modules directory. For using your Fields in your modules you should connect DB before connected this modules.
<?php // Connecting the public controller require_once('assets/controller.php'); // Connecting a module require_once('modules/rand_num.php'); ?> <html> <head> ... <b>Random number module:</b> <?=$rand_num;?> ...
That so... In my opinion this functionality enough for all landing pages. If you don't think so you can fork my project or suggest me some features ;)
To speed up work with the CMS, you can use the following hotkeys:
n- new Field;
You can find out the special keys for your browser here.
You can translate the CMS to any languages. How to do this:
- Go to
- Create a directory with language name like
- Into the new directory create the
- Fill the
main.phpfile by analogy with
- Update the
LANGUAGEwith the name of the language directory;
- Fix Color Picker and File Uploader for IE9;
- Add Security Key to Responsive File Manager;
- Add JS-less accessebility for File Uploader;
- Fix Ghost Bug for Color Picker (sometimes just does not work);
- Add supporting RGB/RGBA/HEX to Color Picker;
- Add Admin icon to frontend;
- Add Plugins support
- Add Drag'n'Drop for Groups and Fields sorting;
- Add Pages;