Page 1 of 1

Mle CMS - Could you help me to solve this problem?

Posted: Wed Apr 15, 2015 4:09 am
by angelpeace
My website has two languages:
EN (English) | FR (France)

In module Mle CMS,
I created Snippets "snippet_currency" with content:
EN = USD
FR = EUR

Database Insert 1 Record into Table "cms_module_templates"
- module_name = MleCMS
- template_name = snippet_currency
- content = {"en":"USD","fr":"EUR"}

Now I use foreach to take USD value or EUR when the language is EN or FR. You can give me instruction usual foreach PHP or smarty

Thank you./

Re: Mle CMS - Could you help me to solve this problem?

Posted: Wed Apr 15, 2015 7:41 am
by Jos
You can simply use {MleCMS name="snippet_currency"} then it should return the currency that belongs to active language. No need for foreach loops