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.

Show country region in the second segment, selected language in third.

August 01, 2011 1:09pm

Subscribe [2]
  • #1 / Aug 01, 2011 1:09pm

    CRHain

    8 posts

    Hello.

    Our company has recently partnered with Canada, and I’m trying to set up my site to allow them to see unique content. I purchased the multiple-site manager because I was initially thinking I wanted to separate the regions by domain (domain.com and domain.ca). I then would have further segmented the canadian domain by language (domain.ca/en/ and domain.ca/fr/). But when I was setting this up, I didn’t like having to make the same channel entry twice to get it to show up in both regions.

    So I went through and made it so it’s all divided up into domain.com/en/ and domain.com/fr/. But now I realized that this just separated by language, not region.

    I looked at apple’s website, to see how they handled it, and they have apple.com, apple.com/ca/, and apple.com/ca/fr/.

    Does anyone have any advice on how to mimmic this functionality? I’ve already purchased the Multiple-Site Manager and Biber Multi-Language Support.

    Edit
    I also need to be able to keep those segments loaded when navigating around the site. domain.com/contact would be the same as domain.com/ca/fr/contact/.

  • #2 / Aug 02, 2011 2:19am

    John Henry Donovan

    12339 posts

    CRHain,

    Just a reminder of the Wiki article that I linked for you recently

    I am going to move this to the community help forum as its more appropriate there.

    Did you ever consider sub-domains?

    ca.domain.com/fr
    domain.com/fr

    So you would set up each MSM site a subdomain

    Would that work?

  • #3 / Aug 02, 2011 3:49am

    CRHain

    8 posts

    I looked into it, but I didn’t like that I didn’t have the ability to post one article to both domains at the same time, nor did I like that I have to set up each channel and field groups seperately for each site, since all the content is the same. I could only imagine the headache this could cause once we expand to european markets. I think I’ll save the MSM for our unrelated divisions (a construction product, and a renewable energy product).

    I did have a look at your wiki, which led me to Biber language support. I have that set to almost perfect (with english and french content switching nicely). I am having an issue with index.php getting in the way when I link from one page to the next. Instead of domain.com/fr/page, I’m getting domain.com/index.php/fr/page, causing an error. I was hoping to touch base with the developer tomorrow.

    But now I want to go one step further and use the second segment to separate regions, and the third segment to separate language. But if the region is the united states, and the language is english, I want those segments to vanish.

    I’m thinking this is something I need to do with categories and .htaccess.

  • #4 / Aug 05, 2011 2:28pm

    CRHain

    8 posts

    Is anyone able to help? Has anyone done something similar before?

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

ExpressionEngine News!

#eecms, #events, #releases