Hot answers tagged

2 votes

Grid {field:total rows} is not returning correct value

If your conditional is checking if it is > 0 this would work fine as a replacement: {if foo:total_rows != ""} You have more than 1 row. {if:else} You have 1 row. {/if}
user avatar
  • 1,029
1 vote
Accepted

Champagne 2 get_channels() on a non-object

I did some hunting and found that ee 2.6 and I assume 2.7 doesn't load the channel_model automatically. So I added this line right above 188: $this->EE->load->model('channel_model'); so ...
user avatar
  • 166

Only top scored, non community-wiki answers of a minimum length are eligible