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:

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

jbomb’s picture

Hello 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.