Forum


Replies: 3   Views: 4298
Problems with variable replacement
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  · 17-11-2015 - 18:08

Hello,

The support of placeholders replacement in headers and footers by WordFragments and HTML was added in phpdocx 4.6, so we recommend you to upgrade to use this feature.

About your other question, you need to set the target parameter to 'footer' or 'header' to replace the correct scope. Please check the documentation available on:

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

Regards.