attribute_view_gui and ezmatrix

Author Message

nigel dodd

Tuesday 29 March 2005 3:39:00 am

If I use the default attribute_view_gui to view an attribute that is an ezmatrix it misses off the first column of the matrix.

Digging around, I find that the default template is

design\base\override\templates\datatype\ezmatrix\view.tpl

and this contains some code to only show the first column if it contains the strings 'contact information' or 'company address':

{section name=Rows loop=$matrix.rows.sequential}
    <td>
        {section name=Columns loop=$Rows:item.columns}
            {section show=0|eq($Rows:Columns:index)}
               {switch match=$attribute.contentclass_attribute_identifier}
               {case match='contact_information'}
                     <em>{$Rows:Columns:item}:</em>
               {/case}
               {case match='company_address'}
                     <em>{$Rows:Columns:item}:</em>
               {/case}
               {case}
               {/case}
               {/switch}

This seems a bit too specialised for code that is supposed to render a generic matrix.

Obviously it can be overridden but why does the default distro contain such specialised assumptions for ezmatrix?

Ɓukasz Serwatka

Tuesday 29 March 2005 4:11:37 am

Hi,

Could you report this problem in bug system?
http://ez.no/community/bugs

Thank you

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 09:10:40
Script start
Timing: Jan 31 2025 09:10:40
Module start 'layout'
Timing: Jan 31 2025 09:10:40
Module start 'content'
Timing: Jan 31 2025 09:10:40
Module end 'content'
Timing: Jan 31 2025 09:10:40
Script end

Main resources:

Total runtime0.0264 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0126 588.1328151.2109
Module start 'layout' 0.01260.0027 739.343836.6641
Module start 'content' 0.01530.0095 776.007890.2656
Module end 'content' 0.02480.0016 866.273429.9922
Script end 0.0264  896.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00228.4982140.0002
Check MTime0.00103.8939140.0001
Mysql Total
Database connection0.00072.535710.0007
Mysqli_queries0.004015.331830.0013
Looping result0.00000.053310.0000
Template Total0.00114.310.0011
Template load0.00093.293910.0009
Template processing0.00031.000410.0003
Override
Cache load0.00062.130010.0006
General
dbfile0.004918.438680.0006
String conversion0.00000.038040.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.0001 secs