[solved] Submenus not working - PLEASE HELP!

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
lprintz
Forum Members
Forum Members
Posts: 76
Joined: Thu Jun 19, 2008 5:59 pm

Re: Submenus not working - PLEASE HELP!

Post by lprintz »

Tried replacing the .htaccess that came with CMSMS...still nothing :(

This is really stressing me out! For the life of me I can't understand why...

http://www.gymnasticsvillage.com/about- ... ays-2.html works but

http://www.gymnasticsvillage.com/about-us/holidays.html doesn't when they're both using the same template.

Stab in the dark but I've pasted the config file below...I set the heirarchy to 'false' but that didn't do anything. I set the global setting to NOT use heirarchy - per what I found in the forums - still nada!

I purposely removed the password stuff:

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = '';
$config['db_password'] = '';
$config['db_name'] = '';
$config['db_prefix'] = 'cms_';
$config['db_port'] = 0;
$config['root_url'] = 'http://www.gymnasticsvillage.com';
$config['timezone'] = 'America/New_York';
$config['default_encoding'] = 'utf-8';
$config['url_rewriting'] = 'mod_rewrite';

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

#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = 'false';

#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
?>
lprintz
Forum Members
Forum Members
Posts: 76
Joined: Thu Jun 19, 2008 5:59 pm

Re: Submenus not working - PLEASE HELP!

Post by lprintz »

sorry...I meant http://www.gymnasticsvillage.com/classes/holidays.html doesn't work.

It DOES work when I remove the heirarchy though!
lprintz
Forum Members
Forum Members
Posts: 76
Joined: Thu Jun 19, 2008 5:59 pm

Re: Submenus not working - PLEASE HELP!

Post by lprintz »

I missed the comment about the rewrite conditions.

They are in the htaccess that comes with CMSMS and it looks like it was in the original as well.
lprintz
Forum Members
Forum Members
Posts: 76
Joined: Thu Jun 19, 2008 5:59 pm

Re: Submenus not working - PLEASE HELP!

Post by lprintz »

When this is solved, I'll need to take a trip to the Netherlands and Austria and buy you guys a beer!

:)
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Submenus not working - PLEASE HELP!

Post by Jos »

lprintz wrote:it looks like it was in the original as well.
Explain why it wasn't in your post then... :-X
lprintz
Forum Members
Forum Members
Posts: 76
Joined: Thu Jun 19, 2008 5:59 pm

Re: Submenus not working - PLEASE HELP!

Post by lprintz »

Am I smoking something?

It is in my post...towards the bottom
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Submenus not working - PLEASE HELP!

Post by Jos »

must be me who is smoking then ???
lprintz
Forum Members
Forum Members
Posts: 76
Joined: Thu Jun 19, 2008 5:59 pm

Re: Submenus not working - PLEASE HELP!

Post by lprintz »

Perhaps this call all be eliminated if I can just get the friggin heirarchy off there!

Any ideas?

In my global settings I have Automatically create page URL's:Yes and Automatically created URL's are flat:Yes

Cleared the cache but it didn't do anything :(
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Submenus not working - PLEASE HELP!

Post by Jos »

Thats a dead end.. hierarchy is true by default and the setting is deprecated for newer versions of CMSms... 1.11 doesn't understand it anymore IIRC.

You might want to upgrade to 1.11 anyway ;)
uniqu3

Re: Submenus not working - PLEASE HELP!

Post by uniqu3 »

URL's will be automatically created when you add new pages, you will need to edit "URL" field for existing pages.
You could also change alias of "Classes" page to make sure if some rewrite rule or redirect exists somewhere and redirects anything with "classes" in url.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Submenus not working - PLEASE HELP!

Post by Jos »

the url http://www.gymnasticsvillage.com/index. ... e=holidays is working oke, so my definitive guess is that the cause of your issue is in your .htaccess
lprintz
Forum Members
Forum Members
Posts: 76
Joined: Thu Jun 19, 2008 5:59 pm

Re: Submenus not working - PLEASE HELP!

Post by lprintz »

IT WORKS!

It still bugs me why it didn't work in the first place but I changed the top level page alias and voila!

Thanks uniqu3!

Len
uniqu3

Re: Submenus not working - PLEASE HELP!

Post by uniqu3 »

lprintz wrote: It still bugs me why it didn't work in the first place
Because Jos and me are trying to tell that you have somewhere some sort of rewrite or redirect rule setup on your server for like 10 replies now but seems you do not read what we reply :o
And as we are not magicians we have NO idea what kind of files, rules or whatever else you might be running there.

But it works now, case close ;)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Submenus not working - PLEASE HELP!

Post by Dr.CSS »

If you have a flat file in the root somepage.thml and you have pretty URLs on CMSMS that is also in the root and make a page called somepage then when your menu has link to yoursite.com/somepage.html it will go to the flat file not the CMSMS page, turn off pretty URLs in CMSMS till you are done...

If you are trying to replace and existing site with same name pages etc. I would put CMSMS in yoursite.com/cmsms subfolder till it's done then move it to root...
Post Reply

Return to “CMSMS Core”