We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30672
    • 180 Posts
    Hi !

    I'm trying to apply this language switcher to my modx website :

    http://www.ixtendo.com/polyglot-language-switcher-jquery-plugin/

    here is the code to display the language + flags:

    <div id="polyglotLanguageSwitcher">
    		<form action="[[+url]]">
    			<select id="polyglot-language-options">
    				<option id="en" value="en">English</option>
    				<option id="fr" value="fr">Français</option>
    				<option id="de" value="de">Deutsch</option>
    				<option id="it" value="it">Italiano</option>
    			</select>
    		</form>
    	</div>



    My questions :

    1. is there a way to automatically generate the list of languages ?
    2. how do i set it up to change the language on select ? (i tried simply with [[+url]] in form action, but it doesn't work...)

    thanks for your help !

    Troubadour
      • 22840
      • 1,572 Posts
      I have only used it once but im positive babel has a language switcher by default.

      http://rtfm.modx.com/extras/revo/babel/babel.babellinks
        • 30672
        • 180 Posts
        hi thanks for your answer !

        yeah i know the default switcher.
        i want to have like a jquery dropdown menu instead.

        any clue ?
          • 30672
          • 180 Posts
          Up !