Project

General

Profile

Actions

Bug #23184

closed

page.CSS_inlineStyle doesn't work

Added by Björn Paulsen almost 14 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-07-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

Updated by Chris topher almost 14 years ago

Maybe the same mistake as #0014167 for page.inlineJS?

Actions #2

Updated by Björn Paulsen almost 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".

Actions #3

Updated by Jens Hirschfeld over 13 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.

Actions #4

Updated by Lars Malach over 13 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.

Actions #5

Updated by Dmitry Dulepov over 12 years ago

  • Status changed from Needs Feedback to Closed
  • Target version deleted (0)

No feedback provided within 90 days. Closing the issue.

Actions #6

Updated by Felix Nagel over 12 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.

Actions #7

Updated by Dmitry Dulepov over 12 years ago

  • Status changed from Closed to New
Actions #8

Updated by Felix Nagel over 12 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.

Actions #9

Updated by Riccardo De Contardi almost 11 years ago

according to the last comment, this issue can be closed
thanks

Actions #10

Updated by Alexander Opitz almost 11 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF