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: bloq_var_ breaking simple grid when outputting tag before simple grid tags

Status Resolved
Add-on / Version Bloqs 4.4.0
Severity
EE Version 5.4.0

Josh Brodleit

Dec 09, 2020

calling a bloq_var_ variable from a parent bloq. When I place the tag above the simple grids tag, it breaks the code. When I place it after it works fine. I tested with a few different fieldtypes, toggle, text input, select dropdown and still breaks.

{bloq}                    
    {!-- This breaks simple grid below --}                    
    {bloq_var_enable_heading_accent_color}
    {if '{list:total_rows}' >= 1}
        {list}
            {if count == 1}
            <ul class="unsorted-list-lg text-left mb-5{if !image} two-col-list{/if}">
            {/if}
                <li>{list_text}</li> 
            {if count == total_rows}
            </ul>
<p>            {/if}<br />
        {/list}<br />
    {/if}<br />
{/bloq}</p>

<p>{bloq}                    <br />
    {if '{list:total_rows}' >= 1}<br />
        {list}<br />
            {if count == 1}<br />
            </p><ul class="unsorted-list-lg text-left mb-5{if !image} two-col-list{/if}">
            {/if}
                <li>{list_text}</li> 
            {if count == total_rows}
            </ul>
<p>            {/if}<br />
        {/list}<br />
    {/if}<br />
    {!-- This works fine --}                    <br />
    {bloq_var_enable_heading_accent_color}<br />
{/bloq}

 

#1

Josh Brodleit

Looks like some syntax modifications to the list count and total_rows did the trick…changed to:

{if '{list:total_rows}' >= 1}
                        {list}
                            {if '{list:count}' == 1}
                            <ul class="unsorted-list-lg text-left mb-5{if !image} two-col-list{/if}">
                            {/if}
                                <li>{list_text}</li> 
                            {if '{list:count}' == '{list:total_rows}'}
                            </ul>
                            {/if}
                        {/list}
                    {/if}
#2

Josh Brodleit

I take that back…count and total_rows inside the list loop not working like that either.

#3

Josh Brodleit

Comment has been marked private.

Login to reply