permalinks and multi lanuguage

4 posts by 3 authors in: Forums > CMS Builder
Last Post: February 13, 2019   (RSS)

By moh3 - February 9, 2019

Dear CMS builder i was wondering if you could provide points to follow on how to manage content in 2 or more languages and have links manged using permalinks plugin

example:

en: http://example.com/en/blog/article-1

ar: http://example.com/ar/blog/article-1

By daniel - February 12, 2019

Hi moh3,

Here is a similar question that was brought up recently: https://www.interactivetools.com/forum/forum-posts.php?postNum=2242766#post2242766

Let me know if that helps give you any ideas, or if you have any more specific questions.

Thanks!

Daniel
Technical Lead
interactivetools.com

By Steve99 - February 12, 2019

Last year we built a bilingual CMSB driven site using Permalinks and wanted to share our approach.

We utilized a server aliased sub-domain (versus sub-directory) for the alt language. For example, both https://www.exampledomain.com and https://es.exampledomain.com pointed to the same server web space.

Then, as Daniel mentioned, we duplicated fields in the section editors to hold the translated content.

In our site code we check the HTTP_HOST and SERVER_NAME to see if it's the primary English domain or the Spanish sub-domain, then output the appropriate fields. 

Lastly, we installed a Multi-Domain (SAN) Certificate to run the site(s) via https from the same web space.

Just to note, the client wasn't concerned about having translated URLs so we used the same set of English permalinks (no alt translated version).

I guess it's a bit more advanced of a setup, but that's the brief overview of what we had done.

- Steve

By moh3 - February 13, 2019

thanks for your reply, i was wondering if there was a possible way to assign 2 or more permalinks fields within the same section based on number of languages that will output the language key but this will be a miss so i will test your suggestion and see how it could be structured