Project

General

Profile

Actions

Bug #16929

closed

Templates are not rendered fine

Added by Andreas Balzer almost 18 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-02-01
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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)

Actions #1

Updated by Andreas Balzer almost 18 years ago

the error is: "- ERROR: Line 12914: Object Name String, "color" was not preceeded by any operator, =<>({"

Actions #2

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

Actions #3

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..)

Actions #4

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 {

Actions #5

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 #

Actions #6

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;
}
)

Actions #7

Updated by Andreas Balzer almost 18 years ago

same error.. the only difference is, that the line number was of course increased by 1..

Actions #8

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

Actions #9

Updated by Andreas Balzer almost 18 years ago

oh, it works quite well, if it's value is "" or "#" ;)

Actions #10

Updated by Andreas Balzer almost 17 years ago

any idea?

Actions #11

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)?

Actions #12

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)

Actions #13

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.

Actions

Also available in: Atom PDF