Forum for discussing general topics related to Couch.
12 posts Page 1 of 2
Hi

Just a quick one, is it possible for a client to add/publish pages himself from the CMS or would I have to create blank pages for him to fill the content in on the CMS side

Thank you in advance

Ian
Hi Ian,

If you declare a template as clonable, the client will be able to create new pages from that template.

Please take a look at our tutorial http://www.couchcms.com/docs/tutorials/portfolio-site/ where the client is able to add new blog posts and portfolio items.
Hi KK

Thank you for the reply, appreciate it

I had a feeling it was to do with cloned pages but was not 100% so does the php template page I made go in the root on the web server or does it go in a specific folder within the cms folder on the web server?
I've got the cloneable template working but was seeing if it can be used in a way where the client can make lots of new pages him self but will have different url's so one is electrician in basildon and another he makes will be electrician in billericay but the url's need to be electrician-in-basildon.php and electrician-in-billericay.php etc.

Is that possible?
See if nested pages will do what you want. http://www.couchcms.com/docs/concepts/n ... maker.html
Hi tim

I tried nested pages just now and is good as can add pages but the url still remains the same

it stays the same for example astra-test.php but each time I added a new page, it just added the following on to the end ?p=14 which is no good as the url needs to be completly different and not just add ?p=14 or ?p=15 on the end
Ian,

I believe you're almost there. But first let's make sure we're both on the same page.

You made index.php clonable and activated nested pages. Now when you want a new standalone page, you create it as a clone of index.php. Correct?

All that's left to do is to turn on pretty URLs. Find the setting in config.php in the couch folder and set it to 1. Then use gen_htaccess.php to create the .htaccess file. You should then end up with a url like mysite.com/electrician-in-kalamazoo/

Pretty URLS: http://www.couchcms.com/docs/concepts/pretty-urls.html
I didn't use index.php as the clonable and activated nested page

I used a php page called astra-test.php as the clonable and nested page
Hi again, Ian. I might not have understood what you wanted. If all you want is for clonable pages to have nice-looking urls, then you don't need nested pages.

Turn on pretty urls and you'll get page names like mysite.com/astra-test/plumber-in-brighton-beach.html. Nested pages creates a virtual folder structure and allows some other tricks, but you don't need them just to make nice-looking page names.

Sorry to lead you down the wrong path.
Hi tim

na your ok, I really appreciate the help and replies

would there be a way of not having the astra-test in the url so it would just be mysite.com/plumber-in-brighton-beach.html
12 posts Page 1 of 2