Forums / General / Templating.... / Comment34282

Author Topic

Jacobo Quiles

Wednesday 08 November 2006 7:28:53 am

Comment34282

Hi!

You should create a siteaccess for your english site and another for your arabic one.

In the arabic siteaccess create a site.ini.append file with the needed settings and add this one:

[SiteSettings]
Dir=rtl

In the english one, do the same but set the Dir to ltr:

[SiteSettings]
Dir=ltr

Then in your pagelayout, whenever you need to fetch the direction, you can try this:

{def $dir = ezini( 'SiteSettings', 'Dir', 'site.ini' )}

<html dir="{$dir}">

When user is seeing the english page, the english siteaccess will be loaded and the site.ini setting refearing to the direction will point to ltr. When seeing the arabic, will load rtl.

Microblau SL
http://www.microblau.net