Elxis CMS Forum
Support => Elxis 4.x/5.x DEV => Topic started by: datahell on November 10, 2012, 10:59:16
-
Since Elxis 4.0 rev1353 (not yet released) XML parameters can be multilingual.
The type of the multilingual parameters should be text.
To make a parameter multilingual in the XML file you have to provide the multilingual attribute with value = 1.
Example:
<param type="text" name="city" default="" multilingual="1" dir="rtl" label="CITY" description="" />
To get the multilingual version of this parameter in your extension (module, plug-in, template, component, etc) you must use the getML method of the elxisParameters library class.
So for this element instead of using:
$params->get('city', '');
You should use this:
$params->getML('city', '');
This is required ONLY for the multilingual elements, for the rest use the standard get method.
I attach a screenshot from template Delta with a multilingual XML parameter for the site slogan.
-
I think that Elxis is the 1st CMS that it use such a feature.