I am wondering what is best approach in handling multiple merges on one page. Something like such an official avery address label template:
My goal is to create a docx template for address labels and than process it with openTBS so that every db address row ends up in a new label field but not necessarily a new page.
I have quite some problems understanding how to achieve that.
Can this be done inside a template by something similar to a pagebreak and therefore without extra php attention?
Or does it need more php attention and by that I mean designing the template with a separate block for each label on one page and then a pagebreak. Then in the php side I would need to know how many blocks there are in the template and assign for each of those a merge block.
If only the latter way works is there a simple way to parse the template and figure out how many blocks exist in it?