[Typo3-dev] Adding bidi info to html tag: config.bidi
Kasper Skårhøj
kasper at typo3.com
Tue Apr 20 11:54:41 CEST 2004
I added "config.htmlTag_dir" attribute. You can now use this to set
document direction.
BTW, your implementation seems to be wrong. The attribute is "dir", not
"rtl"
- kasper
On Sun, 2004-04-11 at 04:30, Martin T. Kutschker wrote:
> Hi!
>
> A user on the English list tried to display Hebrew and Arabic with
> Typo3. But he experienced problems with the direction of the output.
>
> Adding the "dir" attribute to the body is one step, but doesn't affect
> the direction of the header. So I propose a new config option:
>
> config.bid = LTR | RTL (default to LTR)
>
> It seems all we need is a sall change in
> TSpagegen::renderContentWithHeader().
>
> Current code:
>
> $GLOBALS['TSFE']->content.='
> <html>
> <head>
> ...
>
> New code:
>
> $htmlParam = '';
> if ($GLOBALS['TSFE']->config['config']['bidi']) {
> $htmlParam .= ' rtl="'.$GLOBALS['TSFE']->config['config']['bidi'].'"';
> }
> $GLOBALS['TSFE']->content.='
> <html '.$htmlParam.'
> <head>
> ...
>
> Perhaps a htmlspecialchars() would be approriate, but metaCharset sets
> an example...
>
> Masi
>
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
--
Best regards
- kasper
--------------------
It's not a bug, it's a missing feature.
More information about the TYPO3-dev
mailing list