Publisher is EE6 compatible, but it does not support the Fluid field.

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: Bloqs code is rendered to the browser for one block of template code, but not others

Status Resolved
Add-on / Version Bloqs 4.7.1
Severity
EE Version 5.4

Paul Larson

Jul 27, 2021

Brian,

Hesitate to call this a bug, as it could be our template code. But, this page definitely used to work. I can’t tell if it’s a problem with our template code or something in the entry itself.

This Bloqs snippet works on the homepage, but not within an entry.

line 28 of site/.interior

{if '{scroll_header_bloqs:total_blocks}’ > ‘0’}

  {scroll_header_bloqs}
  {scroll_header_full_width_image}
      {full_width_image}
     
      {/full_width_image}
      {close:scroll_header_full_width_image}
  {/close:scroll_header_full_width_image}
  {/scroll_header_full_width_image}

  {scroll_header_slide}
  {if blocks:count:of:type == '1'}

      {/if}

        {close:scroll_header_slide}

      {if blocks:count:of:type == blocks:total_blocks:of:type}

  {/if}
  {/close:scroll_header_slide}
  {/scroll_header_slide}
  {scroll_header_two_columns_column_1}

      {if text_column}

      {text_column}
      {/text_column}

      {/if}
      {image}
      {/image}
      {close:scroll_header_two_columns_column_1}

  {/close:scroll_header_two_columns_column_1}
  {/scroll_header_two_columns_column_1}

  {scroll_header_two_columns_column_2}

      {text}
      {/text}
      {if image}

      {image}
     
      {/image}

      {/if}
      {close:scroll_header_two_columns_column_2}

  {/close:scroll_header_two_columns_column_2}
  {/scroll_header_two_columns_column_2}

      {scroll_header_scrollable_content}

{slide_header}

        {text}
        {/text}

{footnote}

        {close:scroll_header_scrollable_content}

      {/close:scroll_header_scrollable_content}
      {/scroll_header_scrollable_content}

      {scrolling_header_homepage_content}

        {content}
        {/content}
        {close:scrolling_header_homepage_content}

      {/close:scrolling_header_homepage_content}
      {/scrolling_header_homepage_content}

  {/scroll_header_bloqs}

{/if}

#1

Paul Larson

Jul 27, 2021

Comment has been marked private.

#2

Paul Larson

Jul 27, 2021

This seems to be the offending code

{scroll_header_slide}
{if blocks:count:of:type == '1'}
<div class="scrolling-header hello">
    {/if}
    <div class="img-holder-cont">
        <div class="img-holder{if blocks:count:of:type == '1'} fixed-image{/if}">
            {close:scroll_header_slide}
        </div>
    </div>
    {if blocks:count:of:type == blocks:total_blocks:of:type}
</div>
{/if}
{/close:scroll_header_slide}
{/scroll_header_slide}

When it is commented the other code works.

#3

Paul Larson

Jul 27, 2021

Leaving the code broken for you to see. But on live, we found that removing this conditional (wrapped around a big Bloqs section)...fixes it.

{if ‘{scroll_header_bloqs:total_blocks}’ > ‘0’}

[stuff]

{/if}

Login to reply