Possible bug with css style's.

Author Message

Pablo C. Vergara Castro

Monday 21 June 2004 12:38:22 am

Hi to all.

In one of my overrides templates (that override the login themplate) I put this lines:

<STYLE type="text/css">
BODY
{
background-color:#47527E;
}
</STYLE>

And the template don't show nothing, but when I'd used the debugger I could read this:

<i>Error: eZTemplate Jun 21 2004 09:36:34

parser error @ design/<blablabla>/override/templates/login.tpl:7[19]
Invalid parameter characters in function '': ':#47527E;</i>

Best regards.

Adolfo Barragán

Monday 21 June 2004 1:17:20 am

This is not a bug.

The template compiler misinterpret the symbol "{" and think it is the star of a template function.

You must escape these symbol using the {literal} function:

{literal}
<STYLE ...
{
...
}
</STYLE>
{/literal}

Regards
Adolfo

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 03:38:50
Script start
Timing: Jan 31 2025 03:38:50
Module start 'layout'
Timing: Jan 31 2025 03:38:50
Module start 'content'
Timing: Jan 31 2025 03:38:50
Module end 'content'
Timing: Jan 31 2025 03:38:50
Script end

Main resources:

Total runtime0.0245 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.1328151.2109
Module start 'layout' 0.00490.0042 739.3438220.6875
Module start 'content' 0.00910.0138 960.0313997.6797
Module end 'content' 0.02290.0015 1,957.710929.9922
Script end 0.0245  1,987.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002811.6304140.0002
Check MTime0.00135.1591140.0001
Mysql Total
Database connection0.00072.682710.0007
Mysqli_queries0.002911.697530.0010
Looping result0.00000.040910.0000
Template Total0.00124.810.0012
Template load0.00093.866410.0009
Template processing0.00020.889710.0002
Override
Cache load0.00072.824910.0007
General
dbfile0.00187.192680.0002
String conversion0.00000.032140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs