Share » Forums » General » Templating....

Templating....

Templating....

Wednesday 08 November 2006 4:26:32 am - 2 replies

Author Message

Jacobo Quiles

Wednesday 08 November 2006 7:28:53 am

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

Xavier Dutoit

Wednesday 08 November 2006 7:46:43 am

If you prefer not to add custom parameters to the site.ini, you can create your own files (eg directionsettings.ini.append.php ).

Modify the template example to fetch it into the right place.

X+

http://www.sydesy.com

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu