Forum


Replies: 3   Views: 2437
How do i addfootnote without replacing the existing footnote
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  · 10-10-2017 - 07:04

Hello,

Yes, you can keep the footer content and add new contents. As you are using a template, instead of adding a footer that overwrites the existing footer, you need to set placeholders to the footer in the template and use this method to replace the placeholders by WordFragments:

https://www.phpdocx.com/api-documentation/templates/replace-variable-word-fragment-Word-document

setting the target as footer. Almost all template methods allow to set the target option, so you can replace placeholders by text, WordFragments, HTML and other contents.

Regards.