Elxis CMS Forum

Support => Elxis 2008 developers guide => Topic started by: datahell on October 04, 2007, 22:48:05

Title: Set XML parameters text direction to RTL or LTR
Post by: datahell on October 04, 2007, 22:48:05
In Elxis 2008.x you can set the text direction for text and textarea fields to RTL for RTL languages for any XML element you wish. Elxis by default applies LTR direction (for compatibility) to all text/textarea fields. Notice that LTR languages are not affected (they are being displayed LTR always).

More info here:
https://forum.elxis.org/index.php?topic=717.msg7929#msg7929 (https://forum.elxis.org/index.php?topic=717.msg7929#msg7929)
Title: Re: Set XML parameters text direction to RTL or LTR
Post by: Farhad Sakhaei on October 05, 2007, 19:55:43
very thanx john , it will be useful for right to left languages ... thanx again
Title: Re: Set XML parameters text direction to RTL or LTR
Post by: datahell on October 05, 2007, 20:35:21
Attached a screenshot from live example. Also notice the new CX_ language constants (Custom XML language).

Farhad I have a task for you: Can you search all standard/core XML files (mambots, modules, components, menus) and tell me where you want the text direction to be RTL for Persian language? Notice that by default (compatibility) everything is being displayed LTR if no dir node is set.

[old attachment deleted by admin]
Title: Re: Set XML parameters text direction to RTL or LTR
Post by: Farhad Sakhaei on October 05, 2007, 20:46:13
ok , i will search and tell you soon ...
if you don't set any dir value , in a RTL page , all textboxes and textareas and select boxes have default direction to RTL !!!  ???
john wait for me to tell you a full statistic
Title: Re: Set XML parameters text direction to RTL or LTR
Post by: Farhad Sakhaei on October 05, 2007, 21:25:50
this is an approximately statistic about components :

Syndicate :
Number of RTL fields : 7
Number of LTR fields : 3
----------------------------
Banner :
Number of RTL fields : 5
Number of LTR fields : 3
----------------------------
Massmail :
Number of RTL fields : 2
Number of LTR fields : 1
----------------------------
Contact :
Number of RTL fields : 14
Number of LTR fields : 10
----------------------------
Newsfeed :
Number of RTL fields : 4
Number of LTR fields : 1
----------------------------
Polls :
Number of RTL fields : 15
Number of LTR fields : 1
----------------------------
Weblink :
Number of RTL fields : 4
Number of LTR fields : 2
----------------------------
i think , it is better to leave dir properties with no value ...
because the number of RTL fields are more than LTRs ...
so the fields will be LTR in a LTR page and will be RTL in a RTL page ...