Bug #16929
closedTemplates are not rendered fine
0%
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)
Updated by Andreas Balzer almost 18 years ago
the error is: "- ERROR: Line 12914: Object Name String, "color" was not preceeded by any operator, =<>({"
Updated by Stefano Cecere almost 18 years ago
well.. i think that TS should not parse your text inside the ( )
if it gives that error maybe it is parsing it...
uhmmm
Updated by Andreas Balzer almost 18 years ago
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..)
Updated by Stefano Cecere almost 18 years ago
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 {
Updated by Andreas Balzer almost 18 years ago
well let's asume that the # is the problem.. How to solve that? I mean I can't define css for an id without #
Updated by Stefano Cecere almost 18 years ago
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;
}
)
Updated by Andreas Balzer almost 18 years ago
same error.. the only difference is, that the line number was of course increased by 1..
Updated by Martin Kutschker almost 18 years ago
I don't think that using constants in the left hand side of an expresion is allowed:
{$teaserbannerlayout}temp.cssie5.300 = TEXT
Updated by Andreas Balzer almost 18 years ago
oh, it works quite well, if it's value is "" or "#" ;)
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)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Riccardo De Contardi over 11 years ago
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)
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback for over 90 days and an alternative way was posted.