Page 1 of 1

[SOLVED]MLE Site, two languages and two flash banners....

Posted: Thu Jul 23, 2009 9:38 am
by whitedesign
Hi all,

First of all, thanks for this great version of CMS Made Simple.

I've a little problem with including two differents flash banners in my site.

This site contains two languages fr-FR and en_US.

My header+menu is a flash one, so i'd like to display an header.swf in french and another one in english but i can't because there's no option for choosing a different template for each language.

I noticed in tips & tricks thread the possibility to include differents styles for each language in css file, for exemple:

#header-fr_FR {
  background-image: url(uploads/images/header.gif);
 ...
}
#header-en_US {
  background-image: url(uploads/images/header.gif);
 ...
}

But in my case, it's an .swf file so i can't put it in my CSS...

Can anyone help me?

Thanks a lot

Best regards from france.

[solved]Re: MLE Site two languages and two flash banners....

Posted: Thu Jul 23, 2009 10:34 am
by whitedesign
Haha, i've found a solution finally...  ;)

In fact, instead of writing code in the template like i usualy do, for example:

       

AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shoc ... 'header_fr' ); //end AC code



i've created a global_content bloc called "header", and in this one i put two differents javascript code, one for each language.

In my template i just have now

   
{global_content name='header'}


It works fine... ouf  :)

If this "no problem" can help someone in the future!  ;)

Have a nice day.