This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Setup & design » Language Switch on subdomain
expandshrink

Language Switch on subdomain

Language Switch on subdomain

Wednesday 25 March 2015 9:41:19 am - 3 replies

I have a site with GER and ENG language. The switch is working fine on the normal site.
I created a subdomain of this site and the button for the ENG language is directing me to mydomain.switchlanguage/to/mydomain_site_en 

The mydomain_site_en is the main domain. If i just type normally en.mydomain.com it's working fine. but only the main site. 

My main site_ini is looking like this: 

HostMatchMapItems[]=acp.dnd.dev;dnd_site_admin
HostMatchMapItems[]=dnd.dev;dnd_site_de
HostMatchMapItems[]=en.dnd.dev;dnd_site_en
HostMatchMapItems[]=acp.dndrelaunch.designdaten.com;dnd_site_admin
HostMatchMapItems[]=dndrelaunch.designdaten.com;dnd_site_de
HostMatchMapItems[]=en.dndrelaunch.designdaten.com;dnd_site_en 

 

 

Does anyone have an idea? I'm pretty new to all the ezpublish thing.. Using Legacy 4

Modified on Wednesday 25 March 2015 9:48:33 am by Lena Ph

Thursday 26 March 2015 7:18:02 am

Hello Lena,

Welcome to the eZ Community!

First, could you please share more specific details on what exactly your doing and what exactly is happening as a result of your actions and or what is exactly not happening? Also what do you expect to happen?

You see we need more details than, "if i want to visit sub sites it's not working as well" to be able to guide you to a solution.

Have you read in detail the documentation for this feature? https://github.com/ezsystems/ezpublish-legacy/blob/master/doc/features/4.1/language_switcher.txt

As the documentation shows, the language switcher is an incredibly flexible, configurable and extensible solution. I've almost never seen a use case that it did not provide features required and even in those few customer specific use cases it does not cover it is flexible enough for it's behavior to be able to be extended and customized to meet almost any need. 

A few questions that we also need answers to from you before we can give good suggestions.

  • Are these additional languages configured correctly in the legacy admin's /content/translations uri?
  • Have you created content object translations of your root node (and all other content tree content required) in eng-GB, ger-DE and or other needed languages?
  • Have you created the recommended settings/override/site.ini.append.php settings override configuring? Here are by default disabled examples: https://github.com/ezsystems/ezpublish-legacy/blob/master/settings/site.ini#L939
    • For example you should configure the [RegionalSettings] TranslationSA[] settings block (per the above ini example instruction comments). Note: I think LanguageSA[] settings block is actually silently deprecated, I reviewed in detail and could not find any actual use of it.
  • Does your siteaccess specific site.ini.append.php override settings provide all your other siteaccess names defined within the RelatedSiteAccessList[] settings blocks? This is required as well.

These are just a few key things required before the switchlanguage solution will function correctly.

In short everything you should need is provided by default all you have to do is configure available languages (admin), content object translations (admin) and override and siteaccess settings.

I hope this helps!

Cheers,
Heath

Thursday 09 April 2015 11:24:07 am

Dear Heath,

 

I have already found a solution! Thank you! Can i close this topic somehow?

Thursday 09 April 2015 5:14:18 pm

Hello Lena,

I'm pleased you were able to find a solution and figured out how to flag this thread as solved!

Best wishes

Cheers,
Heath

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from