Page 1 of 1

[solved] Aliases in hierachy

Posted: Mon Feb 04, 2008 12:18 pm
by MisterT
Hi,

I setup a page using pretty urls. For pretty urls I configuered the htacces-file and the config.php file

Code: Select all


###THE CONFIG.PHP:####

#------------
#URL Settings
#------------
$config['assume_mod_rewrite'] = true;
$config['page_extension'] = '.htm;
$config['use_hierarchy'] = true;
Thus, my page should like something like this :

http://www.blah-blah-page.com/index.htm

Now I want to create a  hierachy so that the url should look like this:

http://www.blah-blah-page.com/franks-page/index.htm

However, cmsms complains that I cannot use the same alias twice (even though the second index.htm is loacted in a "sub-folder") an does not let me use this alias.

Is there any way I can get cmsms to allow me to use an alias in lower hierachies  which I already used in a higher hierachy?

(I hope my question was understandable. :) Couldn't find anything relevant in the forum.)

Thanks for any help!

Re: Aliases in hierachy

Posted: Tue Feb 05, 2008 12:42 am
by nivekiam
No, you cannot use the same alias (page name) more than once.  Search the forums for 'duplicate alias' and similar keywords for more info.  I hope this addressed in version 2, but I'm not holding my breath.

I wish CMSms understood and cared about the path instead of just a page alias, then this would be a non-issue, but that's not the currently not the case.  They have all the information to care about the path, the hierarchy, it's just not enforced...

If you're looking at converting an existing site to using CMSms and you've structured your existing site to point to index.htm pages in each directory you could use a rewrite rule or redirects to point the old pages to the new pages that don't use index.htm as the file part of the path.

Oh, but I may have found a work around depending on what you are looking for, I don't know if this will break in a future version or not.

If your page called, franks-page and have your extension set to '/index.htm' then that will create franks-page/index.htm  However, if you have other pages in that same directory for example, franks-page/page2, that would create franks-page/page2/index.htm

Re: Aliases in hierachy

Posted: Tue Feb 05, 2008 11:45 am
by MisterT
Hello nivekiam,

thanks alot  for your answer.

I agree, that would be a great feature in version 2. Until then, though, I suppose I'll have to use another cms-programme for that particular project.  :(

Re: Aliases in hierachy

Posted: Tue Feb 05, 2008 11:52 pm
by Pierre M.
nivekiam wrote: I wish CMSms understood and cared about the path instead of just a page alias, then this would be a non-issue, but that's not the currently not the case.  They have all the information to care about the path, the hierarchy, it's just not enforced...
I agree. I'd like the URL/URI to content mapping be better enforced because I think a website is a mapping of links and contents.

Pierre M.

Re: [solved] Aliases in hierachy

Posted: Wed Feb 06, 2008 2:47 am
by cubix
I think this is my biggest feature request!

Re: [solved] Aliases in hierachy

Posted: Fri Feb 08, 2008 1:30 pm
by Pierre M.
Hello,
cubix wrote: I think this is my biggest feature request!
The dev team can't track issues (feature requests, bugs...) with the forum. Please help them by filing your feature request in the forge.

Have fun with CMSms

Pierre M.