Gin.Tonic Posted August 31, 2016 Share Posted August 31, 2016 (edited) Hi there, searched for a solution for my problem but i couldnt find one, so here's the deal: My Language toggle is not working. The localization works for either setting the right language in the BO itself or using browser detection (currently turned off), so what am i missing? if i hover the mouse icon changes but a click wont do anything Im also sure the languages are installed correctly, but it isnt working. (for example manually switch to other languages) my blocklanguages.tpl <!-- Block languages module --> {if count($languages) > 1} <div id="languages-block-top" class="languages-block"> {foreach from=$languages key=k item=language name="languages"} {if $language.iso_code == $lang_iso} <div class="current"> <span>{$language.name|regex_replace:"/\s.*$/":""}</span> </div> {/if} {/foreach} <ul id="first-languages" class="languages-block_ul toogle_content"> {foreach from=$languages key=k item=language name="languages"} <li {if $language.iso_code == $lang_iso}class="selected"{/if}> {if $language.iso_code != $lang_iso} {assign var=indice_lang value=$language.id_lang} {if isset($lang_rewrite_urls.$indice_lang)} <a href="{$lang_rewrite_urls.$indice_lang|escape:'html':'UTF-8'}" title="{$language.name}"> {else} <a href="{$link->getLanguageLink($language.id_lang)|escape:'html':'UTF-8'}" title="{$language.name}"> {/if} {/if} <span>{$language.name|regex_replace:"/\s.*$/":""}</span> {if $language.iso_code != $lang_iso} </a> {/if} </li> {/foreach} </ul> </div> {/if} it's currently looking like this: (attached) Thanks for your input ... Edited August 31, 2016 by Gin.Tonic (see edit history) Link to comment Share on other sites More sharing options...
Gin.Tonic Posted August 31, 2016 Author Share Posted August 31, 2016 This can be marked as answered! For anyone with a non-working currency or language toggle: Try checking the "push java script to end of file" option in advanced modes -> CCC If anyone with a little bit more insight could explain why this is necessary and how i could prevent this i would be really thankful though 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