The module provides a global Views field plugin with mailmerge-like capabilities.
The primary use case for this module is to provide a mail merge facility at the Views field level.
Mailmerge tokens are replaced by the matching value. This can be useful for presenting forms that need to be viewed or printed based on text in a node body and fields from a view. For example, a Webform can be used for data entry and this field can be used to present that information based on a node body that includes tokens.
The field definition includes a Text field and a Mailmerge field.
The Mailmerge field defines one or more key|value substitutions like this:
[text1]|This is a constant
[site_name]|[site:name]
[node:id]|{{ nid }}
[name]|{{ first_name }} {{ last_name }}
This defines four substitutions. The first is a constant. The second uses the global token replacement. The third includes a Views' field value. The final one combines two Views fields.
The tokens in the Text field would be [text1], [site_name], [node:id], [name].
The Text field definition is typically from another Views field like a node body. For example:
This node ([node:id]) is from [site_name].
{{ body }}
The {{ body }} text could include any of the tokens like [name].
Project information
2 sites report using this module
- Created by bwong on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 8.x-1.x-dev updated 5 Sep 2024 at 01:43 UTC
