jdorn / dorncms-2

A complete rewrite of DornCMS
2 stars 0 forks source link

New simplified design #3

Open jdorn opened 10 years ago

jdorn commented 10 years ago

The entire framework will run on two main technologies: JSON Schema and Twig.

Directory Structure

The user can make a config/parameters.schema.json file that will drive an editor on the admin page for changing site-wide parameters. The editor will save to site/parameters.json.

This may contain things like:

The user can make a config/meta.schema.json file that will drive an editor for each page's meta data. The editors will save to site/pages/PAGE_NAME/meta.json.

The meta.json files may contain things like:

Each page needs a content.schema.json file that will drive an editor for the page content. The editor will save to site/pages/PAGE_NAME/content.json.

Administration

The user can log into the back-end with the user info defined in config/config.json. There will be a default user of admin.

Here, the user can:

This will use JSON editor

lib/DornCMS/config.schema.json will drive an editor for site configuration data. The editor will save to config/config.json.

config/config.json will include:

This will use JSON editor

Edit Templates

This will be a simple file browser in the templates directory and Ace editor (or something similar) for editing the twig files.

Edit Pages

The meta.json and content.json files for each page will use JSON editor.