thank you mcDavid your solution appeared to be the right solution, however I still miss a bit.
I tried using your solution with the template below:
Code: Select all
{content block="optional product1" assign='product1'}
{if !empty($product1)}
<div class="product1">{content block="optional product1" oneline="true"}</div>
{/if}
{content block="optional product2" assign='product2'}
{if !empty($product2)}
<div class="product2">{content block="optional product2" oneline="true"}</div>
{/if}
{content block="optional product3" assign='product3'}
{if !empty($product3)}
<div class="product3">{content block="optional product3" oneline="true"}</div>
{/if}
However I still have to put N blocks in my template while I'd like the blocks to increment to block2,block3,block4 automatically.
Even worse when editing the page the user will be shown all N blocks, while he should only see the ones which have content plus an empty one to insert new content.
Hope it's clear what I mean...
Thank you very much!