Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Counts or First/Last Variables for Columns

Status Resolved
Add-on / Version Simple Grids & Tables 1.0.2
Severity
EE Version 5.0.1

Jarod Clark

Nov 29, 2018

Hey I’m working with the Simple Grids/Tables field to build a dynamic table setup in Bloqs. The issue I’m running into is there are a bunch of variables for working with things on a row level, but nothing on the column level.

In this case, I need to apply some different classes & content to the first cell in a row, and I don’t see any available variables to do that with. {count} increments on the row level, as does {index}.

There are variables for {is_first_row} and {is_last_row}, but nothing for columns. Would really hate to have to drop to PHP for this. It would also be great to get some kind of {total_cols} variable. Would be great if this could be added, or if you have any other thoughts on how to accomplish this.

#1

BoldMinded (Brian)

This seems like a good thing to have.

I’ve added the following vars:

{total_columns}
{col_count}
{col_index}
{is_first_col}
{is_last_col}
{row_count}
{row_index}
#2

BoldMinded (Brian)

Comment has been marked private.

#3

Jarod Clark

Just installed. Works great so far. Thanks!

#4

BoldMinded (Brian)

Excellent! I’ll get this out in the next release.

Login to reply