prithvi007 Posted October 26, 2010 Share Posted October 26, 2010 Hi all,I am trying to use 2 css files in a single template.But at a single time one css file will be active based on what language the user has selected.Like {if $lang_iso == en} <link href="en.css" rel="stylesheet" type="text/css" media="{$media}" /> {else} <link href="fr.css" rel="stylesheet" type="text/css" media="{$media}" /> {/if} Can you please tell me if this is the proper way in selecting a css file based on language selection.Please suggest,Thanks,Raj Link to comment Share on other sites More sharing options...
tomerg3 Posted October 26, 2010 Share Posted October 26, 2010 Assuming $lang_iso has a value, you can just use a single lin <link href="{$iso_lang}.css" rel="stylesheet" type="text/css" media="{$media}" /> Link to comment Share on other sites More sharing options...
prithvi007 Posted October 30, 2010 Author Share Posted October 30, 2010 Works like a charm.....Many thanks 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