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./
Mle CMS - Could you help me to solve this problem?
- angelpeace
- Forum Members
- Posts: 39
- Joined: Fri May 15, 2009 9:45 am
Re: Mle CMS - Could you help me to solve this problem?
You can simply use {MleCMS name="snippet_currency"} then it should return the currency that belongs to active language. No need for foreach loops