Page 1 of 1

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

Posted: Thu Apr 14, 2011 5:43 am
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?

Re: Two same alias in whole hierarchy - seo urls

Posted: Thu Apr 14, 2011 5:56 am
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

Re: Two same alias in whole hierarchy - seo urls

Posted: Thu Apr 14, 2011 6:07 am
by pustofkj
Yeah, I'm kind of blind :-[ ... thank you very much :-)

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

Posted: Wed Apr 20, 2011 12:02 pm
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.

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

Posted: Wed Apr 20, 2011 12:12 pm
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

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

Posted: Wed Apr 20, 2011 12:50 pm
by jezzdk
That explains a lot haha :) Looks like I need to upgrade.

Thanks!

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

Posted: Wed Apr 20, 2011 12:51 pm
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...

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

Posted: Wed Apr 20, 2011 2:41 pm
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