Problems, need help? Have a tip or advice? Post it here.
19 posts Page 2 of 2
What a read and very helpful, I did not know I could list out pages in that alternative way and having a way to toggle pages is very helpful and simplifies the process of adding to the menu. But to be honest, I still don't know how this first way works because I can't get it to work.

I may have not been as clear as I thought I was when I wrote my post. The Menu Maker using the index.php to create menu works fine, even the URLS when I hover over the links of the menu look great, pretty url is generating fine.

The issue I am having is, when I click on History for the About page, it loads the index and not the about page and the about.php template. :(
john wrote: The issue I am having is, when I click on History for the About page, it loads the index and not the about page and the about.php template. :(


John, from what I can see you have in your nested menu "about" as shown in the screenshot redirecting to about.php.

Could you please screenshot the nested page for "history" within the admin panel? I assume that is redirected too, could you show us the url it is redirected to?
Image
when I click on History for the About page, it loads the index and not the about page and the about.php template
@john, as @Bartonsweb suspects, are you sure you have made the 'History' page of index.php a 'pointer page' that is pointing to the URL of the actual history page of 'about.php'? You should see a pointing-finger icon next to this menu item if it is indeed a pointer page.

Please confirm.

If you are sure you have done just that, please place a <cms:dump /> tag within the k_element_start to get a list of all variables available at that point. Find the one that points to the history page of about.php. Make sure you are using that in your code.
Code: Select all
<cms:if k_element_start ><li>
    <cms:dump />
    ..
    ..
Bartonsweb wrote:
john wrote: The issue I am having is, when I click on History for the About page, it loads the index and not the about page and the about.php template. :(


John, from what I can see you have in your nested menu "about" as shown in the screenshot redirecting to about.php.

Could you please screenshot the nested page for "history" within the admin panel? I assume that is redirected too, could you show us the url it is redirected to?


Hi Barton

Okay.

I put the redirect to the about.php for the 3 about pages and the menu is loading the correct template now.

Screenshot: http://d.pr/i/zX12

However, on the history page and on the staff page I have a content field set. On each page I have content, however when I load the history page which is a sub of about, it loads the content from the about page.

Code: Select all
<cms:template title='About' clonable='1' order='2' >

    <cms:editable name='g_meta_details' label='Page Metatags' type='group' order='1' />
      <cms:editable name='page_title' group='g_meta_details' label='Page Title' desc='Please enter the title of this page' type='text' />
      <cms:editable name='page_description' group='g_meta_details' label='Page Description' desc="Please enter SEO description for this page" type='text' />
      <cms:editable name='page_keywords' group='g_meta_details' label='Page Keywords' desc="Please enter SEO keywords for this page" type='text' />
   <cms:editable name='content' label='Content' desc='Please enter the content' type='richtext' />   

</cms:template>


Above is the code at the top of about.php

I did the same for the donate.php and its loading that template also, great but it also loads the content from the first page, donate page not the sub pages.

This is the field in about.php I have, I would assume it would load the content for the right page?

Code: Select all
<cms:get_custom_field 'content' masterpage=k_template_name />


@KK

Here is the dump screenshot: http://d.pr/i/3iB

PS: THANK you to everyone taking time out of their days to assist me on these forums. :)
Adding to my post.. Not all as I thought.

I still had data in my .htaccess file and since I turned pretty urls off to get everything working (as suggested in doc). I deleted the .htaccess file and turned off pretty urls.

I closed browser to ensure fresh start, went to site and clicked on link.

It shows: http://www.domain.com/index.php?p=15 when I hover over a link, that is where it will take me, but it takes me to:

http://www.domain.com/about/staff-and-board.html

But this page is also showing at "Not Found" The requested URL was not found on server.

So even with pretty urls off it tries to do pretty urls? Am i missing something? If I put the htaccess back the pages load but the urls are still doing pretty urls with it off and not loading correct data. I almost feel something is bugged. :(
@john,

Regarding the prettyURLs issue, it seems the .htaccess is still present in the site's root (mind you, *not* the 'couch' folder). Please verify once again. Try shutting off the servers and rebooting again as it could be a cache issue.

Coming to your original problem, looking at the screenshot that you posted -
CouchCMS_-_Simple_Open-Source_Content_Management___Admin_Panel.png
CouchCMS_-_Simple_Open-Source_Content_Management___Admin_Panel.png (48.39 KiB) Viewed 2634 times

- it can be seen that the URL being pointed to is the 'about.php' (home-view) and *not* to its cloned 'history' page which would have a URL something like http://yoursite.com/about.php?p=18 or http://yoursite.com/about/history.html (if prettyURLs enabled).

I suggest you please navigate to the target history page by going to the listing of pages of about.php in admin-panel and clicking the magnifying glass icon next to 'History' page. Once on the right page, select and copy its URL from the browser's address bar and go to the index.php tree to paste it into the right menu entry.

Hope it helps.
Hi KK,

OK I got the not found fixed. It was cache.

Back to the main problem. So I went and found the ID for the history page and updated the URL in the index.php where the menu structure is, set the History page to point to the correct link

Screenshot: http://d.pr/i/1gZGe

I go back to the site, empty cache refresh browser and go to history page.

Screenshot: http://d.pr/i/7JVU (if you notice at bottom it says about!, this is the content from the content field in the cms for the first page, the about. If I am on history page, it should say History (as it does in cms).

About first page: http://d.pr/i/uoWg
About History Page: http://d.pr/i/14OcS

I think I understand how the linking works now... Although instead of "pasting" the URL in there it would be nice if there was a dropdown under the Redirect and Masquerade radio buttons that gave us a list of all the cloned pages for each template so we can just select that page. :) That possible? Give us / client two options to paste external link or select a link on their site.
I think that is because you are using the following to get the values (only template name is specified and not any page-name) -
Code: Select all
<cms:get_custom_field 'content' masterpage=k_template_name />

Instead of the above, simply use the following -
Code: Select all
<cms:show content />
KK wrote: I think that is because you are using the following to get the values (only template name is specified and not any page-name) -
Code: Select all
<cms:get_custom_field 'content' masterpage=k_template_name />

Instead of the above, simply use the following -
Code: Select all
<cms:show content />


Hi KK,

That fixed that problem. I believe for now I am up and running, appears to have been user error.

Have not tried pretty urls yet, I will do that once all my pages are built.

Thanks for your help and everyone else who contributed! <3
19 posts Page 2 of 2