[Typo3-dev] Adding bidi info to html tag: config.bidi
Martin T. Kutschker
Martin.T.Kutschker at blackbox.net
Sun Apr 11 04:30:37 CEST 2004
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
More information about the TYPO3-dev
mailing list