By Vincent on Saturday, 08 February 2014
Posted in Technical Issues
Replies 5
Likes 0
Views 685
Votes 0
YEEditor (alias: yeeditor)
- Installation (alias: installation)
- Technical (alias: technical)

YESlider (alias: yeslider)
- Installation (alias: installation-1)
- Technical (alias: technical-1)

YETemplate (alias: yetemplate)
- Installation (alias: installation-2)
- Technical (alias: technical-2)

When it is in the subcategories, with the same name it automatically add a number to the end.
How do we change this so it won't add the number to the alias?

I had checked your forum, and it doesn't do this, How do we achieve this?

Vincent
Hello Vincent,

You can't actually have the same alias because when you are accessing a URL, it doesn't follow the category hierarchy. What we have here is a customized routing behavior as we have created separate menu's for each of the category
·
Saturday, 08 February 2014 01:37
·
0 Likes
·
0 Votes
·
0 Comments
·
I think the category alias should follow the hierarchy, it is not like post where post name shouldn't be duplicate. But in most of the cases category name definitely will be the same if our forums are focused on product related topics(like stackideas). This is not a pretty SEF link if the client are very specific on SEF link building, this just won't work and will create massive work load if the forums became bigger and bigger. (ie. installation-29) just doesn't look good, it look very unprofessional.

The Stackideas official forums give me a illusion that it is possible.
·
Saturday, 08 February 2014 13:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Traversing the "category tree" to get the url structure is actually heavy for your database Imagine if you have a pretty deep category tree, the URL wouldn't make sense either.
·
Saturday, 08 February 2014 17:16
·
0 Likes
·
0 Votes
·
0 Comments
·
I had look into some other CMS / PHP code. ie wordpress
When the structure or name are the same, this is the method/algorithm for the alias/slug

Categories alias
YESlider (0) yeslider
Tutorials (1) tutorial
Beta (1) beta
Setup (1) setup

YEEditor (0) yeeditor
Tutorials (1) tutorial-yeeditor
Beta (1) beta-yeeditor
Setup (1) setup-yeeditor

It will make a NAME - PARENT_CAT_NAME - *NUMBER
* only appear when both parent category name are the same (rarely happen, but it may so for such case I am ok to add a number to it)
the number appear only if the 2 main categories name are duplicate like below scenario.

Categories alias
YESlider (0) yeslider
Tutorials (1) tutorial
Beta (1) beta
Setup (1) setup

YESlider (0) yeslider-1
Tutorials (1) tutorial-yeslider-1
Beta (1) beta-yeslider-1
Setup (1) setup-yeslider-1
·
Saturday, 08 February 2014 22:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this. I will try to see if there's any way to see if there's a way to update this in the next release. I guess the biggest issue / hurdles that we have is when users wants short URLs without the category structure in the URL.
·
Sunday, 09 February 2014 12:06
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post