ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Multi Language Sites - English to Spanish

September 16, 2011 3:35am

Subscribe [2]
  • #1 / Sep 16, 2011 3:35am

    coder.css

    1 posts

    Hello All,
    I will be using Multiple Site Manager to develop a website that can be view in both English and Spanish. My intent is to have a button the allow navigators to click Spanish when on the English site, which would direct them to the Spanish site and vice versa.

    My English site will rest on: http://www.mydomain.com
    My Spanish site will rest on: http://www.mydomain.com/es/

    My English site URLs will all be written in English, while my Spanish site will be written in Spanish. What I want to do is find a way to match the URLs, so when someone clicks to view a given page in English or Spanish they are redirected accordingly.

    For example, I want to redirect
    http://www.mydomain.com/contact

    to
     
    http://www.mydomain.com/es/contacto

    Any thoughts, is this something I can do within in my htaccess?

    Thanks in advance!

  • #2 / Sep 23, 2011 3:46pm

    cafenoir

    43 posts

    You could probably use something like Playa, or even just a custom field to link the two language versions of each article together.

    The put the link into a language switcher in your template.

  • #3 / Oct 15, 2011 7:55pm

    coder.css

    1 posts

    I’ve working with using Playa, but I am experiencing issues grabbing the page url from the Spanish site into the English site’s button.

    The custom field might be the way to go for now. Any additional thoughts?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases