Selmah, I finally hit the point where I have to answer this question myself. While my solution is somewhat customized, it may help you develop what you need. The matrix fields that I am trying to hide exist in a two column table that will have a specific override template for that class.
To determine whether or not to show something I am using:
{section show=$Rows:item.columns.1} {* Show the field's value *}
{$Rows:Columns:item}
{section-else} {* Display if field is empty - leave blank to display nothing *}
{/section}
Hope this helps!
Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
{let
RowsNumber=count($content_version.data_map.mydata.content.rows.sequential)}
{section show=$RowsNumber|gt(0)} {*show matrix if rows > 0*}
cc
cc
{/section} {/let}
Well, as Paul F. would ask, have you tried looking at the attributes for the row? Try something like {$Rows:item|attribute(show)}
after
{section name=Columns loop=$Rows:item.columns}
to see what is available. I would bet you could use something along the lines of $Rows:item.rows or perhaps just grab the identifier by using $Rows:item.identifier which would output something along the lines of row_2. Please note that the variable names may need to be changed for your code, but that is where viewing the attributes comes in handy. :)
Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]