Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Did you know that
Elxis 5.x
uses HTML5, CSS3 and pure javascript without external libraries such as jQuery?
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
Multilingual XML parameters
« previous
next »
Print
Pages: [
1
]
Author
Topic: Multilingual XML parameters (Read 3604 times)
datahell
Elxis Team
Hero Member
Posts: 10356
Multilingual XML parameters
«
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.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
webgift
Elxis Team
Hero Member
Posts: 4193
Re: Multilingual XML parameters
«
Reply #1 on:
November 10, 2012, 12:31:22 »
I think that Elxis is the 1st CMS that it use such a feature.
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
Multilingual XML parameters