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 eZ publish you use.
{if eq( $node.object.data_map.properties.content.rowCount, '100' )}
{*show if number of rows is 100*}
{/if}
{*number of rows*} {$node.object.data_map.properties.content.rowCount}
{*number of columns*} {$node.object.data_map.properties.content.columnCount}
The above code gave me the static count which is being descibed in the admin panel. What I want to know, that how many rows contain the data, if its there then it shud display the content other wise not.
In the above page there is a box termed as Physical Properties, for that I want to know if there is empty record in the matrix then it should not display that Properties Box.
Thanks in advance
Pankaj
You must be logged in to post messages in this topic!