Forums / Developer / Matrix Display / Comment44461

Author Topic

Łukasz Serwatka

Sunday 16 October 2005 11:49:04 pm

Comment44461

Hi,

Use this code to display how many rows or columns have your matrix

{*number of rows*}
{$node.object.data_map.properties.content.rowCount}

{*number of columns*}
{$node.object.data_map.properties.content.columnCount}

You can use {if} or sections, depends which version of Exponential you use.

{if eq( $node.object.data_map.properties.content.rowCount, '100' )}
    {*show if number of rows is 100*}
{/if}

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