All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

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: Heading Row not displaying

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

Blake DuBose

Nov 13, 2023

Heading rows are not being saved to entry. When the page is saved the data entered into heading rows is gone.

#1

BoldMinded (Brian)

Can you share a quick video of this? I’m not seeing it happen locally for me.

#2

Blake DuBose

Comment has been marked private.

#3

BoldMinded (Brian)

Ah, so it’s inside of Bloqs. That’s a big difference than a standalone field. Thanks for the video, I’ll try to take a look at this soon.

#4

BoldMinded (Brian)

Comment has been marked private.

#5

Blake DuBose

Brian,

Your fix worked, however, I did have to update the logic for the table output a little bit as your example wasn’t quite working:

<table class="table">
            {table prefix="st:"}
                <tr data-id="{st:row_id}" class="{switch='odd|even'}">
                    {st:columns}
                        {if st:heading_row}
                            <th data-id="{st:column_id}" {if st:heading_row}colspan="{st:total_columns}"{/if}></td>
                                {st:heading_row}
                            </th>
                        {if:elseif st:is_first_row}
                            <th data-id="{st:column_id}">
                                {st:value}
                            </th>
                        {!--{if:elseif st:is_last_row}
                            <td data-id="{st:column_id}">
                                <span class="visually-hidden">{st:column_heading}: </span>{st:value}
                            </td>--}
                        {if:else}
                            <td data-id="{st:column_id}">
                                <span class="visually-hidden">{st:column_heading}: </span>{st:value}
                            </td>
                        {/if}
                    {/st:columns}
                </tr>
            {/table}
        </table>
#6

Blake DuBose

{mixin_table}
    <div class="table-responsive">
        <table class="table">
            {table prefix="st:"}
                <tr data-id="{st:row_id}" class="{switch='odd|even'}">
                    {st:columns}
                        {if st:heading_row}
                            <th data-id="{st:column_id}" colspan="{st:total_columns}">
                                {st:heading_row}
                            </th>
                        {if:elseif st:is_first_row}
                            <th data-id="{st:column_id}">
                                {st:value}
                            </th>
                        {!--{if:elseif st:is_last_row}
                            <td data-id="{st:column_id}">
                                <span class="visually-hidden">{st:column_heading}: </span>{st:value}
                            </td>--}
                        {if:else}
                            <td data-id="{st:column_id}">
                                <span class="visually-hidden">{st:column_heading}: </span>{st:value}
                            </td>
                        {/if}
                    {/st:columns}
                </tr>
            {/table}
        </table>
    </div>
{/mixin_table}
#7

BoldMinded (Brian)

Comment has been marked private.

Login to reply