Setting up Couch CMS

Couch content management system is a compelling option to making a website enabled with little php knowledge. First stage is to create a database through cPanel of the hosting company.

First, create a database;

Schermata 2016-01-17 alle 16.38.10.png

Next create a username;

Schermata 2016-01-17 alle 16.38.58.png

It is important to use the password generator to create a secure password;

Schermata 2016-01-17 alle 16.38.41.png

Once you have the database prepared, go to the couch cms website and download the package;

Schermata 2016-01-17 alle 16.43.33.png

Once you have the folder downloaded, rename the config.example.php to config.phpSchermata 2016-01-17 alle 16.49.29.png

Next you need to open it in a code editor, and add your database name, username & password;

Schermata 2016-01-17 alle 16.51.53.png

Save the folder, and upload it to the root folder on your domain;

Schermata 2016-01-17 alle 16.55.00.png

setup is almost complete, you should go to your domain and access the couch folder, this can be done by going to http://www.example.co.uk/couch. Once there set your username and password up and store it in a safe place. You will be greeted with the backend.

To make a .hmtl file editable through the couch cms it is done really easily, firstly change the file to become a .php file. Next you need to add the code before DOCTYPE;

<?php require_once( ‘couch/cms.php’ ); ?>

<cms:template title=’tester’ />

and the following code after </html>;
<?php COUCH::invoke(); ?>

Then all you need to do is add the following code to add something you want to edit;

<cms:editable name=’text_content’ type=’text’ label=’Text’
desc=’Enter Test Here’>
</cms:editable>

This sound then look something like this;

Schermata 2016-01-17 alle 17.06.15.png

you can then go into the backend and edit what should appear in this place, you can see an example of this here;

Schermata 2016-01-17 alle 17.19.01.png

Which appears on my own website at http://scottlewis.eu/exhibition/exhibition.php which you can see here under the back button in the top left (A mistake I am currently unable to fix);

Schermata 2016-01-17 alle 17.19.45.png

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s