HansSchouten / PHPageBuilder

A drag and drop page builder to manage pages in any PHP project
https://www.phpagebuilder.com
MIT License
739 stars 180 forks source link

import multiple block instance to a single block #68

Closed dumithsalinda closed 3 years ago

dumithsalinda commented 3 years ago

I was added the multiple blocks to a single block.

<section>
<div class=”column”>[block slug=”card”]</div>
<div class=”column”>[block slug=”card”]</div>
<div class=”column”>[block slug=”card”]</div>
</section>

but, When I try to set a different image per card (or text) it changes all cards to the same. Is there a way to fix this.

Thank you

HansSchouten commented 3 years ago

Yes in that case you need to add an id attribute. So: [block slug="card" id="card1"].

dumithsalinda commented 3 years ago

Thank you