can't use same alias under different folder

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.
Post Reply
sherlock
Forum Members
Forum Members
Posts: 15
Joined: Thu Aug 12, 2010 6:08 am

can't use same alias under different folder

Post by sherlock »

hi guys
i am just implementing the pretty seo friendly URL function on my website
the problem I just got into is the following:
when I named an alias the same way as one but in a different folder, I got an error message that same alias name already exist, however from information architecture point of view it should allow it
to illustrate it more clearly, here is an example

let's suppose we have a website selling used and new cars of different brands

URL of Mercedes main page: www.example.com/mercedes/
URL of second hand Mercedes page: www.example.com/mercedes/[b]second-hand[/b]/
URL of new Mercedes page: www.example.com/mercedes/[b]new[/b]/

now, let's take another brand:
URL of Audi main page: www.example.com/audi/
URL of second hand Audi page: www.example.com/audi/[b]second-hand[/b]/
URL of new Audi page: www.example.com/audi/[b]new[/b]/

in this example, in case Mercedes pages are all created, then I couldn't create the Audi pages with same 'new' or 'second-hand' subfolders despite they would have other parent directory then of Mercedes

i know, this can be done other way, like starting with the category then brand (ex. /second-hand/mercedes/ , /new/mercedes/, /second-hand/audi/ , /new/audi/) but we would face the same problem, same alias under different folders

i hope it makes clear for everyone
there are many cases when you would like to organise your pages as in the example I provided above

any hints, advise and help is welcome

let's clarify this issue somehow

thanks
Last edited by sherlock on Wed Aug 25, 2010 7:15 am, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: can't use same alias under different folder

Post by Rolf »

Hi,

The page_alias is unique within CMSMS
So it is not possible to have more then one page with the name new

You have to look in the direction of new-mercedes and new-audi

Hope this helps,

Rolf  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: can't use same alias under different folder

Post by JohnnyB »

this will be a nice URL for people to read and perhaps good for SEO by reinforcing the brand name...

URL of second hand Mercedes page: www.example.com/mercedes/[b]second-hand-mercedes/[/b]
URL of new Mercedes page: www.example.com/mercedes/[b]new-mercedes/[/b]
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
replytomk3

Re: can't use same alias under different folder

Post by replytomk3 »

What's the fuss? Create a page alias for a second "new" page by yourself (not automatically).

I thought that CMSMS would be intelligent enough to name second "new" page with an alias like "new-2".
sherlock
Forum Members
Forum Members
Posts: 15
Joined: Thu Aug 12, 2010 6:08 am

Re: can't use same alias under different folder

Post by sherlock »

mww wrote: this will be a nice URL for people to read and perhaps good for SEO by reinforcing the brand name...

URL of second hand Mercedes page: www.example.com/mercedes/[b]second-hand-mercedes/[/b]
URL of new Mercedes page: www.example.com/mercedes/[b]new-mercedes/[/b]
yes, you are right regarding the reinforcement of the brand, still, I find this a weakness of the CMS
I personally consider, the CMS should allow use of same folder under different category folder
sherlock
Forum Members
Forum Members
Posts: 15
Joined: Thu Aug 12, 2010 6:08 am

Re: can't use same alias under different folder

Post by sherlock »

replytomk3 wrote: What's the fuss? Create a page alias for a second "new" page by yourself (not automatically).

I thought that CMSMS would be intelligent enough to name second "new" page with an alias like "new-2".
well, 'new-2' 'new-3' and so on, would be an option, but still, in order to make as clear and logical, short, SEO friendly, easy to follow URLs, I think, this should be implemented by the CMSMS team

any other thoughts on this issue is still welcome
I am pretty confident, there are other SEO guys just like me, who would like to have this flexibility of the URL naming and categorisation
replytomk3

Re: can't use same alias under different folder

Post by replytomk3 »

Well, then like Rolf said, page aliases must be unique. Therefore the team cannot "implement" this.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: can't use same alias under different folder

Post by Dr.CSS »

You are also not understanding a fundamental part of a CMS, the 'pages' aren't in 'folders' like a flat file site they are stored in the DB and hence every page has to have a unique alias...
sherlock
Forum Members
Forum Members
Posts: 15
Joined: Thu Aug 12, 2010 6:08 am

Re: can't use same alias under different folder

Post by sherlock »

Dr.CSS wrote: You are also not understanding a fundamental part of a CMS, the 'pages' aren't in 'folders' like a flat file site they are stored in the DB and hence every page has to have a unique alias...
i understand it pretty well, however since my website at the moment is a 'flat file site' as you said, now I will have to 301 redirect all those pages for which I can not implement same URL structure in the CMS
I personally like this CMS, it is very useful for me. My problem arised with use of unique alias.
I still think there is a solution but probably it would take some hard coding

Anyway, thanks for all the replies I got

I will remain with a lot of 301 redirects of my current pages to the new ones :) 
nockenfell
Power Poster
Power Poster
Posts: 751
Joined: Fri Sep 12, 2008 2:34 pm

Re: can't use same alias under different folder

Post by nockenfell »

Look at the module MultiDomains. There you can register easy many redirects.
[this message is written with 100% recycled bits]
sherlock
Forum Members
Forum Members
Posts: 15
Joined: Thu Aug 12, 2010 6:08 am

Re: can't use same alias under different folder

Post by sherlock »

nockenfell wrote: Look at the module MultiDomains. There you can register easy many redirects.
thanks a lot, I already installed this module last week, just didn't have time to go through it
I will see what I will implement, probably in .htaccess or the 301 redirect plugin function, will see

thanks again
owr_bgld

Re: can't use same alias under different folder

Post by owr_bgld »

http://dev.cmsmadesimple.org/projects/movedpages

MovedPages - very easy to use

you have only to put in the old url and the alias it's going to
sherlock
Forum Members
Forum Members
Posts: 15
Joined: Thu Aug 12, 2010 6:08 am

Re: can't use same alias under different folder

Post by sherlock »

owr_web wrote: http://dev.cmsmadesimple.org/projects/movedpages

MovedPages - very easy to use

you have only to put in the old url and the alias it's going to
thanks a lot :)
this is really a great community
Post Reply

Return to “CMSMS Core”