EE4 compatibility updates:

  • Publisher is EE4 and EE5 compatible, but it does not currently support the Fluid field.
  • Reel is EE4 and EE5 compatible, but it does not currently support the Fluid field.

Ticket: Blocks with similar names causes double render

Status Resolved
Add-on / Version Bloqs 4.0.11
Severity
EE Version 5.0.1

Vincent Fierant

Nov 22, 2018

Description:
I’ve created two blocks with similar names ({title_with_text_and_background} and {title_with_text}). On an entry with only one block of the latter, the block gets rendered twice.

Please refer to my template below. Is this a known issue?

{layout="layouts/_general"}
{layout:set name="transparent-bar"}false{/layout:set}

{exp:channel:entries channel="pages" dynamic="no" url_title="{segment_2}”}
  {layout:set name="seo-title"}{title}{/layout:set}
  {blocks_field}
      {title_with_text_and_background}
        {embed="bloqs/_title-text-background"
title="{title}”
          content=”{content}”
          background=”{background}”
        }
      {/title_with_text_and_background}

      {title_with_text}
        {embed="bloqs/_title-text"
title="{title}”
          content=”{content}”
        }
      {/title_with_text}
  {/blocks_field}
{/exp:channel:entries}

#1

BoldMinded (Brian)

Nov 22, 2018

Yep, this is a bug I reported to EllisLab awhile back. I don’t think it’s something I can control in Bloqs b/c it has to do with a native function that Bloqs is using to match tag pairs.

https://expressionengine.com/support/bugs/23706/bug-in-get_pair_field-method

#2

Vincent Fierant

Nov 26, 2018

Ah, thanks for letting me know. I’ll rename the blocks for now.
Should this issue be up on the new GitHub repository as well?

#3

BoldMinded (Brian)

Nov 26, 2018

I’ll let EL determine what to do with the ticket.

Login to reply

Contact

For add-on support, please use the Support section. General inquries and pre-sale questions can be sent to support@boldminded.com.