right to left support in 5.7

Permalink
Hi
i see that no right to left support in 5.7 version or im mistaken?
do i have to do it my self ?

 
macnux replied on at Permalink Reply
any idea about RTl support
WebcentricLtd replied on at Permalink Reply
sounds like nobody knows - it's not something I would come across.

The redactor website says that redactor handles rtl:

Extract from the Imperavi site:

direction
Redactor supports both right-to-left and left-to-right text directions. By default, Redactor is set to work with left-to-right, to set it to right-to-left, use 'lang' setting:

$('#redactor').redactor({
direction: 'rtl'
});

So if you were to make an override of the content block and edit the edit and add files and add the direction in there it 'might' work.

Why don't you try it out and report back with the results?
macnux replied on at Permalink Reply
thanks for reply
i dont mean text blocks alignment i mean theme direction for whole website
and switching between rtl and ltr for different languages
WebcentricLtd replied on at Permalink Reply
lol - sorry I misunderstood - please ignore
WebcentricLtd replied on at Permalink Reply
ok - so I got curious and tested it out.

You can set Redactor to do RTL.

You'll need to create an override and edit the add.php and edit.php for each block where the redactor is used (as far as I know - if there is an easier way then someone please shout out).

For example - to change the content block editor:

create a new folder called content under /application/blocks/

grab a copy of the edit .php and add.php from /concrete/blocks/content/

edit the redactor javascript in these files to add the direction:

when you open it it will look like this:

$(function() {
   $('#redactor-content').redactor({
        minHeight: '300',


add the following line after the opening brace:

direction: 'rtl',


so it should now look like

$('#redactor-content').redactor({
       direction: 'rtl',
        minHeight: '300',


Add your new add.php and edit.php to:

/application/blocks/content/

If you do this then the next time you add or edit a content block the editor should be set to rtl.
macnux replied on at Permalink Reply
im sorry but i know this
what i want is make the whole design of the website not just blocks in it