Forum


Replies: 4   Views: 2352
Template - replacetablevariable() with html link
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  · 11-10-2017 - 17:54

Hello,

Yes, you can accomplish what you need using WordFragments. Instead of strings, you can add WordFragments as values to fill tables (you can also use WordFragments for almost any method).

We recommend you to read the information available about WordFragments on:

https://www.phpdocx.com/documentation/practical/wordfragments-and-wordml

And also check the included samples in the examples/Template/replaceTableVariable folder; sample_3.php fills a table using WordFragment with links and images (and you can use almost any other contents such as HTML, charts, texts, paragraphs... as WordFragments).

Regards.