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.

Global path.php variable not parsing correctly

February 26, 2010 12:36pm

Subscribe [2]
  • #1 / Feb 26, 2010 12:36pm

    rcsm

    39 posts

    I am using the technique described here:

    http://expressionengine.com/wiki/Multi_language_site_alternative/

    to create a multilingual version of a website. I believe that I have everything configured properly, but for some reason, it does not appear that EE is parsing my path variable correctly.

    For example, here is the code that I have set up in a directory labeled ‘es’:

    <?php
    
    // ------------------------------------------------------
    // DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
    
    // ------------------------------------------------------
    // Path to the directory containing your backend files
    
    $system_path = "../cmsys/";
    
    // ------------------------------------------------------
    // MANUALLY CONFIGURABLE VARIABLES
    // See user guide for more information
    // ------------------------------------------------------
    
    $template_group = "";
    $template = "";
    $site_url = "http://bixaldev.bixaldigitalmedia.com/es/";
    $site_index = "";
    $site_404 = "";
    $global_vars = array(
        "country_code" => "es",
        "language" => "spanish"
    ); // This array must be associative
    
    ?>

    In theory, when I am on a page that has a path variable link shouldn’t the ‘/es/’ be included as part of the link? It does not seem to be happening, and I cannot figure out what I am doing wrong. Help!

  • #2 / Feb 26, 2010 4:35pm

    Kevin Gerich

    213 posts

    make sure that the site url is set properly in the control panel.
    I’d bet that it doesn’t have /es

    Not sure, but I think EE looks at the settings first, then if it doesn’t find one, it looks in path.php

    Jim

  • #3 / Feb 26, 2010 5:04pm

    rcsm

    39 posts

    You are correct that the site url does not have /es but that is because the english (with nothing appended to the URL is the default).

    It is very odd - I have used this technique before on another bilingual site without problems.

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

ExpressionEngine News!

#eecms, #events, #releases