On Thu, Feb 26, 2009 at 2:26 PM, Hans <[email protected]> wrote:
>
>> But what would look a lot better are rtl exempt pages only showing rtl
>> exempt content, and the rest stays the same: sidebar left, menus from
>> right to left, page header text on right etc.
>> I'll see if i can find out more about this.
>
> okay, i got this solution:
>
> set in site.config textdirrection: rtl
> The skin picks this up in skin.php with
>
> if ($pageArray[0] == 'site' || $pageArray[0] == 'code') {
>        if ($BOLTconfig['textdirection'] == 'rtl')
>                $BOLTvar['$contentdirection'] = 'ltr';
> }
> $BOLTvar['$textdirection'] = $BOLTconfig['textdirection'];
>
> then in the skin template dir=$$textdirection is used in the <HTML > tag,
> and dir=$$contentdirection is used in the content div, switching the
> main content back left to right for site and code pages. Looks quite
> good. But maybe it is better to use an array for pages with content
> always LTR.

Excellent. This is pretty exciting...

> Is $pageArray BOLT's $pagename construct?

Correct. {p0} is essentially count($pageArray);

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to