You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Jinja2 variables don't seem to be accessible in the document properties section. (In MS word select "File" > "Info")
For example:
These variables don't get replaced. Filling out document properties in word has the added benefit of being available to the operating system so in windows you can use the search function.
Describe the solution you'd like
Being able to add the jinja variables into the properties section would be the ideal solution.
Describe alternatives you've considered
There are set properties such as "Authors" where all operators of the project could be automatically added or there is the "Tags" section which is where the project.tags could automatically get put.
Its probably best to leave it up to the user though that way they can fill out as much or as little information as they want in the document properties
Additional context
I have used python-docx before to add document properties so could contribute a PR if you are open to adding this feature.
The text was updated successfully, but these errors were encountered:
domwhewell-sage
changed the title
Jinja variables accessible in word document properties
Jinja variables not accessible in word document properties
Feb 6, 2024
domwhewell-sage
changed the title
Jinja variables not accessible in word document properties
Jinja2 variables not accessible in word document properties
Feb 6, 2024
I hadn't considered looking at document properties. I think that would be a neat addition. If you'd like to submit another PR for it, I'd be happy to accept the feature 😄
Otherwise, I'll make a note to take a look at how it might be done.
The Jinja2 variables don't seem to be accessible in the document properties section. (In MS word select "File" > "Info")
For example:
These variables don't get replaced. Filling out document properties in word has the added benefit of being available to the operating system so in windows you can use the search function.
Describe the solution you'd like
Being able to add the jinja variables into the properties section would be the ideal solution.
Describe alternatives you've considered
There are set properties such as "Authors" where all operators of the project could be automatically added or there is the "Tags" section which is where the project.tags could automatically get put.
Its probably best to leave it up to the user though that way they can fill out as much or as little information as they want in the document properties
Additional context
I have used python-docx before to add document properties so could contribute a PR if you are open to adding this feature.
The text was updated successfully, but these errors were encountered: