Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there any way to use field tokens from the node so that users' form field input can flow within a set chunk of HTML code?
For instance, if "Greeting" was a field used on the node creation form, and "Body" was where the email HTML structure was:
Email Header |
Dear Customer, [field_greeting_value] |
Fixed body copy |
What would be the best way for that to display correctly when users hit the "Preview Newsletter" link in the "Newsletter" tab? Would it be better to use the tpl.php file (which I am not familiar with doing)?
Thanks.
Comments
Comment #1
jbomb CreditAttribution: jbomb commentedHello amaisano:
Basic e-news does not support tokens at this time. One can accomplish the task that you described using the tpl.php file. The entire rendered node object is passed to enews.tpl.php as "$content", so you might have some luck using the contemplate module.