By adamps on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
4.x
Introduced in version:
4.0.0-beta1
Description:
The simplenews-newsletter-body.html.twig has changed. If you have customised this template, please update it based on the new default version. The variables have changed as follows:
- New variable
reason. - Variable
unsubscribe_textcan now be empty, and if so the token [simplenews-subscriber:unsubscribe-url] must not be used - Variable
test_messagecan now be empty. - Variable
keynow takes an additional valueextrawhich indicates an extra copy of the newsletter sent by an administrator. This variable should not be needed - instead check iftest_messageis empty. - Variable
opt_out_hiddenis deprecated - instead check ifunsubscribe_textis empty.
The tokens have changed as follows:
- The token [simplenews-subscriber:unsubscribe-url] will not be replaced if there isn't a valid subscriber (for example for test/extra messages). Check the variable
unsubscribe_textis not empty before using it. - Remove [simplenews-subscriber:subscribe-url] token. It no longer has any purpose, all it can do is to put a subscribe link for a newsletter into that same newsletter.
Impacts:
Site builders, administrators, editors
Themers