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: Bloqs template updates

Status Resolved
Add-on / Version Bloqs 2.10.7
Severity
EE Version 5.2.1

Werner Gusset

Jul 25, 2022

I am not sure if I understand it to replace the close:. Let’s say I have an old bloqs code for a bloq named “einspaltig” without any children like this

{einspaltig}
  <div data-block-name="einspaltig" class="{bf_container_background_color} styled-list">
  	{if blocks:count == 1}
  		{if cf_meta_title}
				{layout:set name="meta-title"}{cf_meta_title}{/layout:set}
			{if:else}
				{layout:set name="meta-title"}{bf_heading}{/layout:set}
			{/if}
		{/if}
  	<div class="container {if bf_no_section_padding == 'Yes'}pt-3 pb-0{if:else}ptb-100{/if}">
  		{pt_section_title}
			.......
		</div> <!-- /.container -->
  {close:einspaltig}
  </div>
  {/close:einspaltig}
{/einspaltig}

Do I have to change it to this?

{einspaltig}
	{if bloqs:is:first_child}
  	< div data-block-name="einspaltig" >
  {/if}
  	{if blocks:count == 1}
  		{if cf_meta_title}
				{layout:set name="meta-title"}{cf_meta_title}{/layout:set}
			{if:else}
				{layout:set name="meta-title"}{bf_heading}{/layout:set}
			{/if}
		{/if}
  	<div class="container {if bf_no_section_padding == 'Yes'}pt-3 pb-0{if:else}ptb-100{/if}">
  		{pt_section_title}
			.......
		</div> <!-- /.container -->
  {if bloqs:is:last_child}
  	< /div >
  {/if}
{/einspaltig}

And are these the complete changes there are to update Bloqs later?

 

 

#1

BoldMinded (Brian)

If you are not using nested bloqs, then you don’t need the children tag or any close tag.

If you are using nested bloqs, then the docs explain how the markup should be. https://docs.boldminded.com/bloqs/docs/features/nesting#template-tags

#2

Werner Gusset

OK. Thanks.

Login to reply