Forum for discussing general topics related to Couch.
17 posts Page 2 of 2
Please go through the documentation page I linked to - it gives you the details.
I think you could use the 'pointer' feature to make the nested-pages lead to the existing pages.
ok not sure if got it 100% right as don't feel right

I have added the following coding to the index.php and services.php page so far

Code: Select all
<cms:template clonable='1' nested_pages='1' title='Services'>

</cms:template>


I have a feeling I don't need to as it looks like I can create a new page when on the Home tab within the couch cms admin side but then the content can't be changed if do it that way as it's using a nested page so am I doing it right so far by adding the above coding to the pages, if so I will carry on doing it that way

I am then thinking if the user wants to create a new page, I can create a page that has the same design/layout as say the sales page and they can enter their own content, is that right if I do that?
Sorry just done the services.php page as a pointer but that way does not allow the user to edit any content on it so think the pointer method won't be any good
Sorry but need urgent help with the following

1) If I visit the home page at http://nicomit.co.uk/. The top half of the content is not showing, it should look like the link here: http://nicomit.co.uk/?p=2, the same is for the services page, the top half of the content is not showing at http://nicomit.co.uk/services.php but it is at http://nicomit.co.uk/services.php?p=4

2) I enabled pretty urls so the ?p=2 etc would be removed but that is no good as it makes the home url look like http://nicomit.co.uk/nicom-it/ and the services url look like http://nicomit.co.uk/services/services which is no good as need it to be http://nicomit.co.uk/services and so on for the other pages

3) Just spotted another issue, if I unselect Show in Menu checkbox on the home page for example, the link/name is still showing in the nav menu, how do I alter the menu coding so the page can be hidden from the menu if the user selects Show in Menu checkbox. UPDATE: I am looking at the menu section of the link: https://docs.couchcms.com/concepts/nest ... maker.html but don't understand how it's going to work. I see
Code: Select all
<cms:menu masterpage='index.php' />
but where do I put that and how would it work with the other pages.

4) There a few other bits that need doing but will get these issues sorted first and then have a go at the other bits and post a new topic if I need to but the above two points are more important first

Sorry am really confused by it all and how it's going to work with the other pages, just seems I am in a mess with it all
UPDATE: I have worked out the menu and got it working but the problem I have found is where the index.php file is a nested page and clonable, each page I create from the couchcms admin side has the same design as the index.php(homepage) which is no good as the services, sales, reviews and contact page have different designs/layouts to the index.php file(the homepage)

How can I get around this issue as got no idea as never had to do anything like this before in couchcms

Please can someone help urgently
Ian, if I am not wrong you already have separate templates for services, sales, reviews and contact i.e. you have services.php, sales.php, reviews.php and contact.php (where the first three are likely clonable).

That would meant that you can directly access
http://yoursite.com/services.php
http://yoursite.com/sales.php
http://yoursite.com/reviews.php
http://yoursite.com/contact.php

This is staple Couch stuff till this point.
Now you need to create a menu showing these items.
For that use index.php as a nestable template. Create four 'pointer' pages for the four sections above so that they redirect to your original pages. This is explained in the docs for 'blog', 'portfolio' and 'contact' - your situation is no different.

Does this help?
Hi

I tried the pointer method but was no good as it does not allow the user to edit the content, for example if I make the following pointer pages, the user can't edit the content on them

http://yoursite.com/services.php
http://yoursite.com/sales.php
http://yoursite.com/reviews.php
http://yoursite.com/contact.php

UPDATE: I think I may have worked out what you mean, I create the pages below as normal pages so the content can be edited but under the nested index.php(home page) I create the pointer pages so they are added in the menu but the content can be edited still, is that right?
17 posts Page 2 of 2
cron