Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Elxis 4.x documentation for users and developers
 
Pages: [1]
  Print  
Author Topic: Set XML parameters text direction to RTL or LTR  (Read 7655 times)
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7601



WWW
« on: October 04, 2007, 21: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:
http://forum.elxis.org/index.php?topic=717.msg7929#msg7929
Logged

Farhad Sakhaei
Elxis Community
Hero Member
*****
Offline Offline

Posts: 1188


I know nothing , Should know more & more


WWW
« Reply #1 on: October 05, 2007, 18:55:43 »

very thanx john , it will be useful for right to left languages ... thanx again
Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7601



WWW
« Reply #2 on: October 05, 2007, 19: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]
Logged

Farhad Sakhaei
Elxis Community
Hero Member
*****
Offline Offline

Posts: 1188


I know nothing , Should know more & more


WWW
« Reply #3 on: October 05, 2007, 19: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 !!!  Huh
john wait for me to tell you a full statistic
Logged

Farhad Sakhaei
Elxis Community
Hero Member
*****
Offline Offline

Posts: 1188


I know nothing , Should know more & more


WWW
« Reply #4 on: October 05, 2007, 20: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 ...
Logged

Pages: [1]
  Print  
 
Jump to: