Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
[UNMAINTAINED] A very simple CMS, just put text files in the pages directory and you're off to go! (no Database required, depends on Zend Framework and Spark Web Framework)
PHP JavaScript

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
images
javascript
layouts
library
pages
plugins
styles
.gitignore
.gitmodules
.htaccess
LICENSE
README.textile
config.ini
index.php

README.textile

Requirements

  1. > PHP 5.3
  2. Apache 2.2 with mod_rewrite enabled and access to VHOSTs configuration (not tested without, but could also work)

(For Experts: It can also work on other web servers than Apache, although I haven’t tested it. Make sure the rewrite rules are configured correctly, look at the rules in public/.htaccess for reference)

Sample Apache VHOST Configuration


NameVirtualHost *:80

<VirtualHost *:80>
    DocumentRoot /path/to/dir/where/you/extracted/SimpleCMS

    # Make sure you have registered this with a DNS server
    # or have an entry in your computer's host file (C:\Windows\System32\drivers\etc\hosts or /etc/hosts on *NIX)
    ServerName your_domain.com

    <Directory "/path/to/dir/where/you/extracted/SimpleCMS">
        Options FollowSymLinks ExecCGI Includes
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

How to install

Stable Package

  1. Get a stable package (simple_cms_vX.X.X) from the Downloads section of Github, these are well tested
  2. Unzip the contents of the downloaded Package, to a folder in the document root of your web server, for example /var/www/simple_cms
  3. Setup a new VHOST and point its document root to the directory of the Simple CMS install, for example /var/www/simple_cms. Don’t forget to update your /etc/hosts or C:\Windows\system32\drivers\etc\hosts file with the server name of your VHOST!
  4. Start your server and open the URL of your VHOST in a Browser — you should see the Getting Started Page

Developer Snapshot

Just clone the repository with git clone git://github.com/CHH/Simple-CMS /your/desired/path and initialize all dependencies with git submodule init and git submodule update.

Usage

Pages

To create a page, simply put a file with the extension “.txt” into the “pages” folder.
If the Root of the Domain (e.g. http://example.com/) gets requested, the page named
“index.txt” gets rendered.

If you want subpages in the style of “http://example.com/foo/bar” just create
a folder “foo” in the “pages” directory. Then create the file “bar.txt” in the foo
folder. This can be done infinitly, so you can organize your pages as you want.

Pages are formatted with the Textile simple markup Language. You can mix in normal HTML too.

The root folders

The root of your install has various folders

|- pages/ The folder for all pages. Subdirectories can be created to achieve a hierarchical organization of the pages.
|- library/ All kind of classes used by the Simple CMS core
|- plugins/ Copy the folders of downloaded plugins in there. Plugins can pretty much do everything, so I don't try to explain it here.
|- images/
|- js/ Javascript files for your site
|- styles/ A place to put your stylesheets in.
|- layouts/ Contains one or more layouts used by all pages. Layouts are rendered around the page content and are used to render content used on all pages such as Navigation or links to stylesheets. 

Want to contribute?

Simple CMS is licensed under the MIT License, and thus Open Source.
To contribute just fork the git repository at http://github.com/CHH/Simple-CMS
and send me pull requests either by mail <christoph.hochstrasser@gmail.com> or via github.

I’m always open for new features and feedback, just send me a mail or a Message on
Github and we discuss it.

Coding is not your thing? But you’re good at writing?

Good documentation is also a feature! Just head over to the Wiki
and write about your favourite feature of Simple-CMS!

P.S.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

© 2010 Christoph Hochstrasser

Something went wrong with that request. Please try again.