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: Syntax for Table within a Fluid Field

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

Grant Jackson

Apr 15, 2018

Description: Using a table field within Fluid Field correct syntax

Added a Simple Table Field (with no defined columns or rows) to the Fluid Field and input data.
I’m struggling with the syntax to get it to output correctly.

Any suggestions on what I’m doing wrong?

{content}
            <div class="row">  

                <div class="col-md-12">
                    <table class="footable table table-stripped" data-sorting="false" style="text-align: left;">

                    {content:insurance_section_data_table prefix="content:st:"}
                        <tr data-id="{content:st:row_id}" switch="{switch='odd|even'}">
                            {content:st:columns}
                                {if content:st:is_first_row}
                                    <th data-id="{content:st:column_id}">
                                        {content:st:value}
                                    </th>
                                {if:elseif content:st:is_last_row}
                                    <td data-id="{content:st:column_id}">
                                        <i>{content:st:value}</i>
                                    </td>
                                {if:else}
                                    <td data-id="{content:st:column_id}">
                                        {content:st:value}
                                    </td>
                                {/if}
                            {/content:st:columns}
                        </tr>
                    {/content:insurance_section_data_table}

                    </table>
<p>                    <br />
                </p>
</div>
<p>        <br />
            </p>
</div><p><!-- /.row --><br />
            {/content}

Login to reply