We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25208
    • 20 Posts
    Hi guys!
    I managed to create a bilingual website with Babel using this post:
    http://modxcms.com/forums/index.php/topic,51346.0.html
    My contexts are:
    -web
    cultureKey: en
    http://localhost/modx/
    -chinese
    cultureKey:zh
    site_url: {site_url}zh
    http://localhost/modx/zh


    Everything works almost perfect, but my problem is that when I switch to "zh" context the assets_url becomes modx/zh/assets/... and all the assets (css, images) are not showing up.
    Is there a way to have different "assets_url" and "assets_path" for each context? I tried to do it in the Context settings, but it doesn’t work.

    Or can I make the "assets_url" absolute?

    I’d appreciate your help!
    Paul
      • 8898
      • 181 Posts
      Having different assets folders makes sense if you have language-specific images.

      If this is not the case, you could edit the chinese context and add the assets_url to the context settings (or change this setting in the context, as I suspect that the setting that causes your problem is located there). I’m not totally sure - I don’t use Babel yet -, but I guess that should solve the problem.

      Cheers,
      Jan
        This message has been ROT-13 encrypted twice for higher security.