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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
angelpeace
Forum Members
Forum Members
Posts: 39
Joined: Fri May 15, 2009 9:45 am

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

Post 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./
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

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

Post 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
Post Reply

Return to “Modules/Add-Ons”