Bruno17 / MIGX

MIGX for revo 2.2 and above
83 stars 78 forks source link

Count MIGX rows. #347

Closed skazhikadyadya closed 4 years ago

skazhikadyadya commented 4 years ago

Hi. I have two nested MIGX fledsets: TVFields1 & TVFields2. How I can do that, like PHP code?

foreach( $TVFIelds1 as $row1 )
{
echo "<h1>$row[title]</h1>';
if ( count ($TVFIelds2) == 1 )  { 
// ONE CODE
} else {
// DO ANOTHER CODE
}

I need to get count of $TVFields2 rows before do [[getImageList ... &tvname=TVFIelds2]].