Bug #16929
closed
Templates are not rendered fine
Added by Andreas Balzer almost 18 years ago.
Updated about 11 years ago.
Description
I use the following code in my template Setup field:
temp.cssie5 = COA
temp.cssie5.20 = HTML
temp.cssie5.20.value (
.someclass {
color:black;
}
#someid {
color:white;
}
)
{$teaserbannerlayout}temp.cssie5.300 = TEXT
{$teaserbannerlayout}temp.cssie5.300.value (
#someotherid {
color:red;
}
)
Well.. someclass and someid work, but in the Template Object Browser i'll get an error message, that the color property of someotherid can't be parsed by T3. Why does T3 try to render my lower part of the code? It just should print it out.. Any idea on what to do?
(issue imported from #M4904)
the error is: "- ERROR: Line 12914: Object Name String, "color" was not preceeded by any operator, =<>({"
well.. i think that TS should not parse your text inside the ( )
if it gives that error maybe it is parsing it...
uhmmm
yeah, but how to archive this, that T3 just prints our the class stylesheet as I would like to have it done? (I want to get rid of this error message..)
don't really know...
but this works for me:
page.headerData.20 = TEXT
page.headerData.20.value (
<style type="text/css">
</style>
)
could the # be the problem? maybe TS sees it as a comment, and loses that {
well let's asume that the # is the problem.. How to solve that? I mean I can't define css for an id without #
have you tried this (just wandering):
temp.cssie5 = COA
temp.cssie5.20 = HTML
temp.cssie5.20.value (
.someclass
{
color:black;
}
#someid
{
color:white;
}
)
{$teaserbannerlayout}temp.cssie5.300 = TEXT
{$teaserbannerlayout}temp.cssie5.300.value (
#someotherid
{
color:red;
}
)
same error.. the only difference is, that the line number was of course increased by 1..
I don't think that using constants in the left hand side of an expresion is allowed:
{$teaserbannerlayout}temp.cssie5.300 = TEXT
oh, it works quite well, if it's value is "" or "#" ;)
- Category deleted (
Communication)
- Status changed from New to Needs Feedback
- Target version deleted (
0)
- PHP Version deleted (
4)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Well, IMHO this can be closed for sure, as the correct method to add this kind of CSS is using the property page.cssInline (IMHO, of course)
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback for over 90 days and an alternative way was posted.
Also available in: Atom
PDF