[Solved]Top menu displays correctly but doesn't work

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

[Solved]Top menu displays correctly but doesn't work

Post by jasnick »

Using CMSMS 1.9.4.2.
Site is in a sub-dir "name" of test site "test".


Using Vista Button menu that displays correctly and the hover works but returns a
"Not Found - The requested URL was not found on this server" message when any link is clicked.

Menu has 2 levels. Not sure how to add it to template - just using {menu} at present.

Added a footer_menu which also displays correctly and works when the pages have content - only Home and Membership have content at the moment.

Can't understand why one works and not the other. This is the first 2 level menu I have done in CMSMS - single level menus have worked in the past.

Thanks
Last edited by jasnick on Mon Jun 06, 2011 1:31 am, edited 1 time in total.
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm

Re: Top menu displays correctly but doesn't work

Post by M@rtijn »

The pages that work use a .html extensions, those that don't use a .php

Have you already copied that htaccess from "doc" to your root?

What is your setting for
$config['page_extension'] = '';
Is it .html or .php?
What happens if you leave it empty, like the example above?
Make your community a better place!
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Top menu displays correctly but doesn't work

Post by jasnick »

M@rtijn wrote:
Have you already copied that htaccess from "doc" to your root?
Yes
What is your setting for $config['page_extension'] = '';
From config:

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';

That is the setting currently
Is it .html or .php?
Neither

From htaccess:

<IfModule mod_rewrite.c>
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /sitename


Thanks
[Later]

I think the problem has come about because I copied the Vista Buttons nav from the current online site.This site has a custom designed CMS that I had outsourced. My colleague has since retired so I am switching the site to CMSMS so I can manage it in the future. The primary nav pages are html but the secondary level is php as these pages are part of the old CMS. I do not know php. Is it enough to change the file extension in the code from php to html? Or start again completely?

I have done several sites in CMSMS now with no problems but they all had one level nav and no previous CMS to complicate things.

Thanks
Last edited by jasnick on Mon Jun 06, 2011 1:31 am, edited 1 time in total.
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Top menu displays correctly but doesn't work

Post by jasnick »

In case anyone is following this thread, I solved the issue.
I had substituted .html for the .php in the path, but it still didn't work.

Then realising that setting for $config['page_extension'] = ''; I dropped the .html extension and then it worked.
Post Reply

Return to “Layout and Design (CSS & HTML)”