Forum


Replies: 3   Views: 1333
Clone blocks does not work if block name is split between to tags
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 05-01-2021 - 10:33

Hello,

What version of phpdocx are you using? phpdocx handles that broken tags automatically for placeholders; old versions of phpdocx may require cleaning the variables before calling cloneBlock (https://www.phpdocx.com/api-documentation/templates/proccess-a-word-docx-template):

$docx->processTemplate();

Latest releases include the same code embedded in the cloneBlock method. Other template methods include it too.

Regards.