Feature #16536
closedIt would be good to include posibility to add "wrap" property to "includeCSS" resource object.
0%
Description
For what purpuse do I need it. And I think that not only I need it.
I hope smbd knows about IE conditional comments (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp).
And thus how IE renders some of CSS styles. So designer have to include additional CSS styles which are not correspond with W3C CSS standarts.
IE conditional statements allows to include these additional CSS (and all another content) like:
Currently I do this with :
headerData.10 = TEXT
headerData.10.value (
)
But it is not very convinient. So it would be good if "wrap" property was implemented for "includeCSS.x" resource, and possibly not only for this object.
I have already changed file class.tslib_pagegen.php for this.
line 550
"
$GLOBALS['TSFE']->content.='
<link rel="'.($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['alternate'] ? 'alternate stylesheet' : 'stylesheet').'" type="text/css" href="'.htmlspecialchars($ss).'"'.
($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['title'] ? ' title="'.htmlspecialchars($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['title']).'"' : '').
($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['media'] ? ' media="'.htmlspecialchars($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['media']).'"' : '').
' />';
"
changed for
"
$includeCSSlink = ' <link rel="'.($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['alternate'] ? 'alternate stylesheet' : 'stylesheet').'" type="text/css" href="'.htmlspecialchars($ss).'"'.
($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['title'] ? ' title="'.htmlspecialchars($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['title']).'"' : '').
($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['media'] ? ' media="'.htmlspecialchars($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['media']).'"' : '').
' />';
if (!empty($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['wrap'])) {
$GLOBALS['TSFE']->content.= '
'.$GLOBALS['TSFE']->cObj->wrap($includeCSSlink, $GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['wrap']);
} else {
$GLOBALS['TSFE']->content.= '
'.$includeCSSlink;
}
"
For example I use it like:
page.includeCSS.file4.wrap =
And it shows:
(issue imported from #M4172)
Updated by Alexander Opitz over 11 years ago
- Category deleted (
Communication) - Status changed from New to Needs Feedback
- Target version deleted (
0) - PHP Version deleted (
4)
As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
No feedback for over 90 days.