-
-
Notifications
You must be signed in to change notification settings - Fork 213
-
-
Notifications
You must be signed in to change notification settings - Fork 213
[feature] add hook to parse simple tokens #7445
Comments
What for? |
To add more tokens to the newsletter subscription mails or the registration mails. Or each core Module which is using the simple tokens. See also #7446 and #7101. In the future this would work like a charm ;) I want to add some custom things to those mails/text. And for know it is only possible, to add static content which does not work all the time. Or is hard to replace it and so on. |
Well |
@aschempp That's right it could be called from anywhere... Haven't thougt about that. |
Any Statement to the Feature? |
On the topic of adding more tokens to the newsletter etc, I think |
Thanks for your Reply. So if I get it right you say, that it is better to have a hook inside the module, before the Data is parsed? |
I don't think a new issue is necessary. Btw, you should take a look at our notification center, where you can also send registration mails etc but using backend templates. |
Is it possible to get a hook in the
\String::parseSimpleTokens()
function?core/system/modules/core/library/Contao/String.php
Line 484 in d0dc2dc
I would suggest to optional add the Module Object to the function:
All arguments should be passed to the hook and expect
$arrData
as a return value.Any other ideas or better suggestion?
The text was updated successfully, but these errors were encountered: