Page 1 of 1

hierarchy in URLs

Posted: Tue Jul 17, 2012 2:11 am
by fivepix
For some reason I can't get the hierarchy in the URL to work?

i've set the url's to be friendly and that seems to be working okay
my urls are:

website.com/MainPage.html

When I add a page and set the parent to be the main I'm expecting the URL to be

website.com/MainPage/subpage.html

but i get: website.com/subpage.html

Have I missed a setting somewhere?

Re: hierarchy in URLs

Posted: Tue Jul 17, 2012 6:25 am
by hasanen
Try to add this in config.php:

Code: Select all

$config['use_hierarchy'] = true;

Re: hierarchy in URLs

Posted: Tue Jul 17, 2012 10:29 pm
by fivepix
I have that in my config file, is there another setting somewhere?

Re: hierarchy in URLs

Posted: Tue Jul 17, 2012 10:40 pm
by Jos
which CMSms version do you have?

Re: hierarchy in URLs

Posted: Wed Jul 18, 2012 9:33 pm
by fivepix
I just upgraded to version 1.10.3 i followed the steps in the documentation:
http://docs.cmsmadesimple.org/configuration/pretty-url

and added "$config['use_hierarchy'] = true;"

Re: hierarchy in URLs

Posted: Wed Jul 18, 2012 9:39 pm
by Rolf
fivepix wrote:and added "$config['use_hierarchy'] = true;"
you dont need that.
Check global settings page, there is a setting for "flat urls".

Rolf