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: 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}
BoldMinded (Brian)
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
Vincent Fierant
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?
BoldMinded (Brian)
I’ll let EL determine what to do with the ticket.