Skip to content

gr33npixel/CuraCMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CuraCMS

Extremely Simple CMS. Requires no knowledge other than html to theme for. Currently, there is no backend, but it is not too difficult to edit/add pages.

The default theme, is pretty ugly as I just chucked something together for development purposes, however I will work on putting out a nicer version.

Download Cura

Upcoming Features

  • Built in theme elements/libraries
  • Proper Backend
  • JSON based version, rather than SQL (Won't require installation, faster, less config)
  • Update Script

Installing CuraCMS

Installing CuraCMS is an extremely simple process and takes under a minute if you already know your sql information

Steps taken are as follows:

  1. Download curaCMS from the Official Page
  2. Upload curaCMS to your server and extract files
  3. Edit config.php according to your mysql information.
  4. Direct your browser to [curaCMS directory]/install.php
  5. Installation is complete! You may want to remove install.php to avoid the risk of security issues.

Adding Content

Adding content (as of the current version) requires you to add content to a mysql table. I know that this is not ideal and will be introducing a more simple, Client friendly way of adding and editing content in a future version of curaCMS

If you would like more information on this, or would like to help out you can email me at henry.greaves1@gmail.com

Adding content is not that difficult, and just requires you to be able to navigate the mysql interface.

Step One

Open up phpMyAdmin or which ever mysql interface you are using. On a standard webhost, this will be located on the control panel under mysql or something similar.

Step Two

Open the database created during installation (the name of which is specified under config.php) and then open up the table "cms".

Step Two

Step Three

Go to the insert tab and fill out the fields accordingly. id should be left blank as it automatically will be assigned, title is the name of the page as it appears on your navigation bar, and content is the page content Step Three

Formatting Content

Content is standard html. You are able to add additional styling with "style" tags. Similarly, javascript can be added using "script"

In the default theme, each segment of content should be wrapped in

and tags.

Editing/Updating Pages

Open the browse tag of phpMyAdmin and click "Edit" next to the page you would like to edit Editing Pages

Theme Design

Your theme is located at the base of index.php. Another version has a dedicated file "theme.php", but that has a bug, so will be release once fixed. A curaCMS theme is comprised of standard html, and placeholders.

Variable Description
Location of the stylesheet for your theme (can be changed under config.php).
Title of the page you are currently on.
All of the items in the navigation bar wrapped in
  • tags.
    Content of the page you are currently on.
    Name of your website (can be changed under config.php)
    Footer for your website (can be changed under config.php)
    ID of the page you are currently on.

    Example Theme

        <html>
        <head>
                <link href=<?php echo $t_stylesheet;?> rel="stylesheet"/>
                <title><?php echo $html_title; ?> | <?php echo $s_name?></title>
        </head>
        <body>
                <section>
                <nav><ul><?php echo $html_nav_items;?></ul></nav>
                        <?php echo $html_content ?>
                <footer><?php echo $s_footer;?></footer>
                </section>
        </body>
    

    Download Cura

    About

    No description, website, or topics provided.

    Resources

    License

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

     
     
     

    Contributors