Skip to content
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

Jinja2 variables not accessible in word document properties #389

Open
domwhewell-sage opened this issue Feb 6, 2024 · 1 comment
Open

Comments

@domwhewell-sage
Copy link

The Jinja2 variables don't seem to be accessible in the document properties section. (In MS word select "File" > "Info")
For example:
image
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.
image
image

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.

@domwhewell-sage 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 domwhewell-sage changed the title Jinja variables not accessible in word document properties Jinja2 variables not accessible in word document properties Feb 6, 2024
@chrismaddalena
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants