eZ Community » Forums » eZ Publish 5 Platform » Multi languages siteaccess using...
expandshrink

Multi languages siteaccess using "Compound\LogicalAnd" configuration

Multi languages siteaccess using "Compound\LogicalAnd" configuration

Wednesday 02 October 2013 7:18:49 pm - 3 replies

My need :5 siteaccess (2 sites in 2 languages + admin ) :

  • firstsite.com => siteaccess "fre"
  • firstsite.com/eng => siteaccess "eng"
  • secondtsite.com => siteaccess "second_fre"
  • secondtsite.com/eng => siteaccess "second_eng"
  • admin.firstsite.com => siteaccess "admin_site"

In this purpose I tried the following configuration in ezpublish.yml :

Compound\LogicalAnd:               

 -                    matchers:                     

 Map\URI:                       

eng: true                     

 Map\Host:                     

firstsite.com: true                   

 match: eng               

 -                    matchers:                     

 Map\URI:                       

eng: true                     

 Map\Host:                       

secondtsite.com: true                   

 match: econd_eng           

 Map\Host:               

firstsite.com: fre               

secondtsite.com: second_fre               

admin.firstsite.com: admin_site

It leads to a nice error page :"An exception has been thrown during the rendering of a template (Serialization of 'Closure' is not allowed) in "UmanITKaliterreBundle:full:landing_page.html.twig". 500 Internal Server Error - Twig_Error_Runtime 121 linked Exceptions…….."

So I ended using the following configuration :

Map\URI:               

eng: eng               

second_eng: second_eng           

Map\Host:               

firstsite.com: fre               

secondtsite.com: second_fre               

admin.firstsite.com: admin_site

 

which is not satisfying as I now have to use "secondtsite.com/second_eng" to access the english version of my second site instead of simply "secondtsite.com/eng"

Thanks for your help

Modified on Wednesday 02 October 2013 7:27:11 pm by Irma Vrignaud

Thursday 03 October 2013 9:22:44 am

Hi Irma

Can you please at least format your configuration ? It's very hard to read.

You can also use a gist (can be embedded as well).

Thanks.

Thursday 03 October 2013 9:25:13 am

This has been fixed recently: https://jira.ez.no/browse/EZP-21613

Thursday 03 October 2013 11:52:39 am

Sorry for the format... and thanks for the reply!

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from