-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use variables in header / footer for template #50
Comments
Hi, Jerome. I'll handle that in the nearest time. |
Thanks @RomanSyroeshko |
Hi, Jerome. Good news is that I have some code that works now. Hope the feature will fit in 0.7.2 release. |
Why not merging the working code @RomanSyroeshko ? |
@jdespatis I've created a patch on the current develop branch based on your direction. I've also adjusted Please kindly test it and inform us about the result. Thanks. |
@ivanlanin, please do not include that patch into the develop branch of the PHPWord official. I will handle this issue after #58. Thanks. |
Ok @RomanSyroeshko. Can't wait to see us start using namespaces :) I'll leave this to you. Thanks. |
@jdespatis Pull #190 from @dgudgeon to |
@jdespatis Could you check and confirm it's ok for you ? Thanks :) |
@jdespatis Some news ? |
@Progi1984 Seems to be ok |
Prefect, you have tested with the last version of PHPWord (0.10 for Composer) ? |
@jdespatis Some news ? |
@Progi1984 I've tested with latest dev-master (38d3d7b), and it works like a charm! Thanks, and so sorry for the delay... Time machine should really exist... |
Thanks for confirming :) |
I'm using the
loadTemplate()
function to set values in a template.It works great except for values that are in header / footer. They're not replaced
The reason is because PHPWord only replaces values in the body, and not in the header / footer.
It has been quoted here, with a patch to make it work:
https://phpword.codeplex.com/discussions/236472
with a more generic way here: https://phpword.codeplex.com/workitem/69
Would be nice to have this feature in the official PHPWord :)
The text was updated successfully, but these errors were encountered: