Page 2 of 2

Re: Submenus not working - PLEASE HELP!

Posted: Tue Jul 31, 2012 3:50 pm
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';
?>

Re: Submenus not working - PLEASE HELP!

Posted: Tue Jul 31, 2012 3:52 pm
by lprintz
sorry...I meant http://www.gymnasticsvillage.com/classes/holidays.html doesn't work.

It DOES work when I remove the heirarchy though!

Re: Submenus not working - PLEASE HELP!

Posted: Tue Jul 31, 2012 3:56 pm
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.

Re: Submenus not working - PLEASE HELP!

Posted: Tue Jul 31, 2012 3:57 pm
by lprintz
When this is solved, I'll need to take a trip to the Netherlands and Austria and buy you guys a beer!

:)

Re: Submenus not working - PLEASE HELP!

Posted: Tue Jul 31, 2012 3:58 pm
by Jos
lprintz wrote:it looks like it was in the original as well.
Explain why it wasn't in your post then... :-X

Re: Submenus not working - PLEASE HELP!

Posted: Tue Jul 31, 2012 4:14 pm
by lprintz
Am I smoking something?

It is in my post...towards the bottom

Re: Submenus not working - PLEASE HELP!

Posted: Tue Jul 31, 2012 4:19 pm
by Jos
must be me who is smoking then ???

Re: Submenus not working - PLEASE HELP!

Posted: Tue Jul 31, 2012 4:26 pm
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 :(

Re: Submenus not working - PLEASE HELP!

Posted: Tue Jul 31, 2012 4:28 pm
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 ;)

Re: Submenus not working - PLEASE HELP!

Posted: Tue Jul 31, 2012 4:42 pm
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.

Re: Submenus not working - PLEASE HELP!

Posted: Tue Jul 31, 2012 4:49 pm
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

Re: Submenus not working - PLEASE HELP!

Posted: Tue Jul 31, 2012 4:54 pm
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

Re: Submenus not working - PLEASE HELP!

Posted: Tue Jul 31, 2012 5:02 pm
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 ;)

Re: Submenus not working - PLEASE HELP!

Posted: Tue Jul 31, 2012 10:24 pm
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...