Jump to content

How To Multilanguage Htmlbox Content?


Recommended Posts

Hello guys,

i have a little problem:

i added some html text in the HTMLbox module, in order to show a promotion text in the header of my website, however my website is multilanguage and i would like that text to change depending on what language is selected.

 

could anybody help me with that? is the htmlbox content located in some folder?

  • Like 1
Link to comment
Share on other sites

You should buy the paid version. It is fantastic, https://mypresta.eu/modules/front-office-features/html-box.html

 

Or you can enter the content in HTML mode and use a conditional if statement, something like,

 

{if $lang_iso == 'en'}

<p>Your words here</p>

{elseif $lang_iso == 'fr'}

<p> Vos mots ici </p>

{/if}
Edited by Bill Dalton (see edit history)
  • Like 1
Link to comment
Share on other sites

 

You should buy the paid version. It is fantastic, https://mypresta.eu/modules/front-office-features/html-box.html

 

Or you can enter the content in HTML mode and use a conditional if statement, something like,

 

{if $lang_iso == 'en'}

<p>Your words here</p>

{elseif $lang_iso == 'fr'}

<p> Vos mots ici </p>

{/if}

 

Hello thanks for your reply,

i tried but unfortunately when i insert something like that it shows it as a normal text, like if that command {if $lang_iso == 'en'} (which i think is php) is not working in the htmlbox..

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...