venkatesh Posted August 17, 2011 Share Posted August 17, 2011 Hi i was displayed languages in dropdown box.now whenever i choose language from dropdown i need to display the page in that particular language. help me where to change code. Thankx Link to comment Share on other sites More sharing options...
Patric Posted August 17, 2011 Share Posted August 17, 2011 Hi, Do you use a customized template? May be you should provide the sites URL. Link to comment Share on other sites More sharing options...
venkatesh Posted August 18, 2011 Author Share Posted August 18, 2011 yes i am customizing existing template.I wrote code like this to display in dropdown. <ul id="first-languages">{l s='Languages' mod='blocklanguages'} <select onchange="getLanguageLink(this)"> {foreach from=$languages key=k item=language name="languages"} <option value="{$language.id_lang}" {if $language.iso_code == $lang_iso}class="selected_language"{/if}>{$language.name} </option> {/foreach} </select> </ul> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now