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: Simple Table inside Bloqs is only outputting raw data and not the table structure itself

Status Resolved
Add-on / Version Simple Grids & Tables 1.4.3
Severity
EE Version 6.2.4

John Derrick

Jan 26, 2022

I have created a Simple Table inside a Bloqs and named it ‘table_grid_block” with a field of ‘table_block”. My template code looks like this:

  {table_grid_block}

      {table_block}

          {columns}
              {if is_first_row}

                  {value}

              {if:elseif is_last_row}

                  {value}

              {if:else}

                  {value}

              {/if}
          {/columns}

      {/table_block}


  {/table_grid_block}

The output is working for the raw data that is input into the backend, but the table structure seen in the template isn’t outputting at all. No ‘tr’ and no ‘td’ - even the ‘table’ tag is missing from the output.

I have attached several screenshots showing the output, the entry data as seen in the CP, and the code I have in my bloqs template.

Thanks,
John

#1

John Derrick

The example above stripped out the HTML… see my screenshot please for the code example I’m using.

#2

John Derrick

Simple Grid does the same thing, it strips the ‘tr’ and ‘td’ and doesn’t place the ‘table’ tag.

#3

John Derrick

Ah, I have to actually include the ‘table’ tag to make it output those elements. That makes sense because it means you can use the field for other purposes beyond tables, etc. That’s perfect because that’s exactly what I need it for (something outside a table that repeats). Thank you for this! Makes Bloqs even more powerful.

#4

BoldMinded (Brian)

Glad you figured it out 😊

Login to reply