Details
-
Bug
-
Resolution: Cannot Reproduce
-
Medium
-
4.6.0-dev
-
None
-
Operating System: RHEL 6.1
PHP Version: (please be specific, like '4.4.3' or '5.1.5'): 5.3.3
Database and version: Mysql 5.1.52
Browser (and version):
Description
Hi,
Overriding a table template, to change the background color, doesn't work.
Steps to reproduce
Edit the settings/override/override.ini.append.php and add the following:
<?php /* #?ini charset="utf-8"?
[table_comparison_tr]
Source=content/datatype/view/ezxmltags/tr.tpl
MatchFile=datatype/ezxmltext/tr_comparison.tpl
Subdir=templates
Match[table_classification]=comparison
*/ ?>
Setup, create a folder and an article with a table within the folder Login into admin as admin Click on “Content Structure†on top menu Create a “News†folder Create a new article “Article1†with the following data: Title: Article1 Summary: Below there is a table with a 4x4 rows/columns Click on the “Inserts a new table†button Columns: 4 Rows: 4 Class: Comparison Table Summary (WAY): Test Click on the “OK†button Fill in each one of the table cells with “o†Click on “Send for Publishing†button Verify the background of the table in ezflow Access ezflow Click on “News†folder Click on “Article1†article Verify that the table has a grey background Define a new template to change the table background color Create a new tr_comparison.tpl template: $ vi /extension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/tr_comparison.tpl <tr{if ne($classification,'')} class="{$classification|wash}"{/if} style="background-color: red;"> {$content} </tr> Clear cache $ rm -rf var/cache $ rm -rf var/ezflow_site/cache Verify the table background color Access ezflow Click on “News†folder Click on “Article1†article Verify that the table has now a red background
In the last step of the test, instead of becoming red, the background remains grey.