[SOLVED] Two same alias in whole hierarchy - seo urls

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
pustofkj
Forum Members
Forum Members
Posts: 19
Joined: Fri Feb 04, 2011 1:57 pm

[SOLVED] Two same alias in whole hierarchy - seo urls

Post by pustofkj »

Hi all, I'd like to seo addresses. In CMS Made Simple it's very easy to achieve with uncomplicated pages structure. But if you have hierarchy initiated below - or similar (two languages with the same subtree - czech and english - so you can follow english subtree):

Code: Select all

cz
  > hry
      - šachy
      - go
  > výsledky
      - šachy
      - go

en    // follow this subtree
  > games
      - chess
      - go
  > results
      - chess
      - go
... there is the problem. Every page have to own different alias. So the problem is e.g. within subtrees of nodes "games" and "results". I could choose these aliases:

in "games" subtree
chess -> game-chess
go -> game-go
and in "results" subtree
chess -> results-chess
go -> results-go
But now, the addresses absolutely aren't optimised. URLs will be following:
and I'd like:
Is here any way to achieve these?
Last edited by pustofkj on Thu Apr 14, 2011 6:08 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Two same alias in whole hierarchy - seo urls

Post by RonnyK »

yes,

there is a way to achieve this....

Use the PageURL function that is set in advanced-settings.

The alias is and should be unique, that is correct, but the way the URL is presented is up to you. You can have the system make autoURLs based on hierarchy, or flat (your example is hierarchical, as the parent structure is to be used). So if you enable PageURL and make them hierarchical, then they will show as you like. When you set it to autocreate, then it will only make the pageURL initially, so changing aliasses/structure etc... wont change the pageURL. It should be modified manually after the initial setting.

And when you set it to autimatic, then simply opening/saving a page will have it create the URL, as when it is empty it will fill.

Ronny
pustofkj
Forum Members
Forum Members
Posts: 19
Joined: Fri Feb 04, 2011 1:57 pm

Re: Two same alias in whole hierarchy - seo urls

Post by pustofkj »

Yeah, I'm kind of blind :-[ ... thank you very much :-)
jezzdk
New Member
New Member
Posts: 6
Joined: Sat Nov 28, 2009 1:05 pm

Re: [SOLVED] Two same alias in whole hierarchy - seo urls

Post by jezzdk »

I seem to be blind as well. Where do I find these advanced settings?

I expected to find it under Global Settings -> Advanced Setup but nothing about page url is there.

I'm using version 1.8.2.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: [SOLVED] Two same alias in whole hierarchy - seo urls

Post by RonnyK »

jezzdk,

you are not blind, just way behind ;)

This functionality came in in 1.9-series. Currently we are on 1.9.4.1...

Ronny
jezzdk
New Member
New Member
Posts: 6
Joined: Sat Nov 28, 2009 1:05 pm

Re: [SOLVED] Two same alias in whole hierarchy - seo urls

Post by jezzdk »

That explains a lot haha :) Looks like I need to upgrade.

Thanks!
jezzdk
New Member
New Member
Posts: 6
Joined: Sat Nov 28, 2009 1:05 pm

Re: [SOLVED] Two same alias in whole hierarchy - seo urls

Post by jezzdk »

By the way, is there any way I can generate a page url for all my pages in one go? I have a few hundred of them and it'll take forever to do it one by one...
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: [SOLVED] Two same alias in whole hierarchy - seo urls

Post by RonnyK »

I thought that the upgrade script took care of the filling of the pageURL, but you will see on upgrade ;)

I thought a setting regarding the hierarchical structure was required for that in config.php to trigger the filling on upgrade, as after the upgrade, that parameter is gone....

If you dont have flat URLs, then there is no issue at all, as by default the regular logic will be in. So the filling of pageURL is not required, it is just the overruling of the pagealias logic...

Ronny
Post Reply

Return to “Modules/Add-Ons”