3

I’ve set up a few email notifications to be sent to customers, and in the corresponding email templates I’d like to use content from Global fields I’ve created.

But when I use the regular variable {{ globalSetHandle.fieldHandle }} nothing is outputted in the emails.

Does that means that we can’t use Globals inside email templates?

Thanks!

3

They aren't loaded into the twig template global scope but you can access them with:

https://craftcms.com/docs/templating/craft.globals#getSetByHandle

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.