We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16245
    • 22 Posts
    hello,

    i have on my template some separately url. how can i set that for babel..
    normally is <a href="[[~123]]"></a> but on/with babel?

    the second one is that i have a different picture for each language.. how can i set that?

    regards
      • 37242 ☆ A M B ☆
      • 339 Posts
      That is a good question! I didnt think about that regarding babel. Maybe I can ask the author of babel.

      cheers,

      Guido
        • 37242 ☆ A M B ☆
        • 339 Posts
        Can you figure out a solution when I point you to this post? https://forums.modx.com/thread/70863/problems-with-babel#dis-post-396209

        The images seem to be handled via .htaccess there.
          • 38237
          • 83 Posts
          This is what i am using as Babel links chunk to have flags for each language, just rename the flags with the cultureKey.jpg name and it works great. You can also modify it to have the current language grayed out but I don't like it personally

          <a href="[[+url]]" class="[[+cultureKey]][[+active:notempty=` [[+active]]`]]"><img src="Images/flags/[[+cultureKey]].png" title="[[%babel.language_[[+cultureKey]]? &topic=`default` &namespace=`babel`]]" alt="[[+cultureKey]]" class="flag" /></a> 


          Another nice trick, is to create the default.inc.php lexicon file with language names per each language to the title would be with the current language name, or you can modify it as you like.