Hi,
In corporate licence, is there a way to use templates features to replace a variable by a web link ? I could use replaceVariableByText and define the text as a full URL but it would be great if we could shorten it behind a simple tag.
Regards
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it nowHi,
In corporate licence, is there a way to use templates features to replace a variable by a web link ? I could use replaceVariableByText and define the text as a full URL but it would be great if we could shorten it behind a simple tag.
Regards
Hello,
Yes, you just need to replace the placeholder by a WordFragment. We recommend you to read these pages:
http://www.phpdocx.com/documentation/practical/wordfragments-and-wordml
http://www.phpdocx.com/api-documentation/templates/replace-variable-word-fragment-Word-document
and the included examples of the replaceVariableByWordFragment method.
Regards.