Forum


Replies: 3   Views: 3927
Several table variables inside docx template: only first table will be filled.
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  · 26-10-2015 - 14:41

Hello,

Phpdocx 4 added new options and a lot of improvements. For example the option firstMatch in the replaceTableVariable method:

http://www.phpdocx.com/api-documentation/templates/replace-table-variable-Word-document

But using phpdocx 3 we recommend you to don't duplicate the placeholders when working with tables or lists.

Regards.