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

Add campaign.subject variable in templates #386

Closed
adrianjean opened this issue May 21, 2023 · 4 comments
Closed

Add campaign.subject variable in templates #386

adrianjean opened this issue May 21, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@adrianjean
Copy link

Forgive me if this already exists, but it would be helpful to be able to access the Subject line text from the Sendout in the template, especially when Title field is enabled and there is a separate Subject field.

@adrianjean adrianjean added the enhancement New feature or request label May 21, 2023
@adrianjean adrianjean changed the title FR: Add {{campaign.subject}} twig variable in sendouts FR: Add {{campaign.subject}} twig variable in templates May 21, 2023
@bencroker
Copy link
Collaborator

The subject is tied to the sendout, so {{ sendout.subject}} should do what you're after.

@adrianjean
Copy link
Author

Ah ok yes — that variable works on testing the sendout in an actual email — thank you!
One note tho, the variable doesn't seem to show in the sendout preview tab.

@bencroker bencroker changed the title FR: Add {{campaign.subject}} twig variable in templates Add campaign.subject variable in templates May 23, 2023
@bencroker
Copy link
Collaborator

bencroker commented May 23, 2023

You’re right. I just changed that behaviour in e34e249 for the next release.

@bencroker
Copy link
Collaborator

Released in version 2.7.1.

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

No branches or pull requests

2 participants