matching language menutext in the URL

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
Jim_Bob
Forum Members
Forum Members
Posts: 33
Joined: Mon Jun 02, 2008 8:14 am

matching language menutext in the URL

Post by Jim_Bob »

Hi,

I'm using the 1.41 MLE version of cmsmadesimple with 3 languages (de, en, fr, default=de)
with the "pretty URL" setting.

My question/ problem:
When I create a website in all 3 languages f.e. an article about "school", I fill in a separate
menutext for very language version, f.e. in german "Schule", in englisch "school" and in
french "ecole". Everything is shown correct in the menubar (in french "ecole" etc.), but
when I click the link in the menu, only the german menutext is shown in the URL, this means:

-> I'm in the french section, clicking "ecole" and expecting www.domain.xyz/fr/ecole.html
-> I'm in the german section, clicking "Schule" and expecting www.domain.xyz/de/Schule.html
-> I'm in the french section, clicking "school" and expecting www.domain.xyz/en/school.html

but I always get the www.domain.xyz/de/Schule.html URL in the addressbar of my browser.

Is there any possibility to show the matching language menutext in the URL?

Greetings
Jimbob
alby

Re: matching language menutext in the URL

Post by alby »

Jim_Bob wrote: but I always get the www.domain.xyz/de/Schule.html URL in the addressbar of my browser.

Is there any possibility to show the matching language menutext in the URL?
No, because Schule is the alias page and not title page and alias is unique for every languages page (same of ID)

Alby
Jim_Bob
Forum Members
Forum Members
Posts: 33
Joined: Mon Jun 02, 2008 8:14 am

Re: matching language menutext in the URL

Post by Jim_Bob »

Hi Alby,

thank you for your reply.
Is there really no way to create additional content_alias fields for every language and deliver it to the URL?
This feature would be fine for SEO reasons. Maybe it is possible to take the menu_text_en, menu_text_fr
fields from the database for this.

Greetings
Jimbob
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: matching language menutext in the URL

Post by Dr.CSS »

If you click a link that is supposed to be for one lang and you end up at another lang instead you have something messed up, do you have content in other lang pages, are you using some pretty url rule, in config.php or .htaccess?...
Jim_Bob
Forum Members
Forum Members
Posts: 33
Joined: Mon Jun 02, 2008 8:14 am

Re: matching language menutext in the URL

Post by Jim_Bob »

Hi Mark,

thank you for your reply.
That is not my problem (if I understand you right). If I click the english-link "school" I get
the correct and matching content - same for the other languages. Everything is working fine.
But i don't get the (language-) matching sitename in the URL depending on the menu entries
of every language.
I understand - ALBY told me - that the content_alias field in the database is responsible for
the sitename that is shown in the URL.

My question:
Is it possible to create and to use an additional content_alias for every language or maybe the
menu_text_ ... entries for that ? This could be very interesting for SEO reasons.

Greetings
Jimbob

@ALBY:
Can you tell me the files where the content_alias is evaluated.
alby

Re: matching language menutext in the URL

Post by alby »

Jim_Bob wrote: Can you tell me the files where the content_alias is evaluated.
In everywhere  ::)

Jim_Bob wrote: Is it possible to create and to use an additional content_alias for every language or maybe the
menu_text_ ... entries for that ? This could be very interesting for SEO reasons.
I ask to Ted to implement it in 2.0

Alby
Jim_Bob
Forum Members
Forum Members
Posts: 33
Joined: Mon Jun 02, 2008 8:14 am

Re: matching language menutext in the URL

Post by Jim_Bob »

Hi Alby,

thank you very much for your response.
I think this would be a great feature in the coming version.

greetings
Jimbob
Locked

Return to “[locked] CMSMS MLE fork”