- Issue created by @mxt
- 🇮🇹Italy mxt Milan
Do I have to create a custom token where I load the node and pass it...
Yes, this seems like the correct approach: I created a custom "global" token that returns the specific node object containing the protected images everywhere, to which you can then append the protected_download specific tokens, something like this:
file:protected-download-url token: [my-global-token-type:my-specific-node:field_images:0:entity:protected-download-url] file:protected-download-expire token: [my-global-token-type:my-specific-node:field_images:0:entity:protected-download-expire]
And you can put above tokens wherever you want, including the email automatically sent after each newsletter subscription.
One thing I still have to figure out is how to set a custom expiration date, because the one printed by the token seems to be predefined and I haven't yet found a way to change it at will (but this will eventually be the subject of another issue)