Forums / Setup & design / attribute_view_gui and ezmatrix

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