Bug #23184
closedpage.CSS_inlineStyle doesn't work
0%
Description
In Typo3 4.4 the Setup Code
page.CSS_inlineStyle (
#col3 {margin:0;}
)
makes nothing. But it should set in Frontend
<style>
#col3 {margin:0;}
</style>
(issue imported from #M15120)
Updated by Chris topher over 14 years ago
Maybe the same mistake as #0014167 for page.inlineJS?
Updated by Björn Paulsen over 14 years ago
I don't think so!
page.cssInline put the CSS Code in a temporary CSS-File like typo3temp/stylesheet_824112cd03.css?1279048005
But I don't want this. I want a <style></style> Tag. Because <style>-Tag override the CSS-Files and the temporary created CSS-File is the first of all. So all CSS-Styles overwrite "page.cssInline styles".
Updated by Jens Hirschfeld over 14 years ago
I have the same Problem. I have updated from TYPO3 4.2.13 to 4.4.1 and have made all changes in the update wizard. After Clearing the Cache the temporary CSS-Files are not created, but linked in the created HTML-Output-Page.
<b>Update:</b>
<i>Workaround:</i>
config.inlineStyle2TempFile = 0
The default-value for this config property has changed with TYPO3 Version 4.0.
In my case clearing the typo3temp-directory with the install-tool has fixed the problem.
Currently I don´t have the Problem anymore.
<b>Update2:</b>
The Problem was the baseUrl. I have moved my TYPO3 Installation from one Server to another. The DNS-Records of the tested Domain directed still to the old Server. But i have tested on the new Server. So the Browser has tried to load the css file from the baseurl. This temporary file don´t exist on the old Server. Changing the baseurl to the domain-name, which i have used to test the new server solved the Problem.
Updated by Lars Malach about 14 years ago
Björn Paulsen, have you still the same problem or was the post from Jens Hirschfeld helpful and we can close this (bug)?
Can not reproduce your problem on trunk version 4.5.
Updated by Dmitry Dulepov over 13 years ago
- Status changed from Needs Feedback to Closed
- Target version deleted (
0)
No feedback provided within 90 days. Closing the issue.
Updated by Felix Nagel about 13 years ago
Issue confirmed in TYPo3 4.5.6.
If using config.inlineStyle2TempFile = 1 page.CSS_inlineStyle will not add any CSS neither in the external CSS file nor in the HTML source. If config.inlineStyle2TempFile = 1 is set the CSS is rendered inline in the HTML.
Should be reopened.
Updated by Felix Nagel about 13 years ago
After some research on a clean TYPO3 4.5.6 installation I must confess I overlooked the second temp CSS file which contains the missing CSS declarations. The second file is at another position (seems like plugin CSS temp file, all includeCSS files, CSS_inlineStyle CSS file). Is there any reason why these inline CSS files wont be merged?
Technically this could be closed again. Sorry for the inconvenience.
Updated by Riccardo De Contardi over 11 years ago
according to the last comment, this issue can be closed
thanks