The Template Fields List tool in the Templates area of CommunitySuite shows the merge fields associated with each template type and displays real data from your site next to each merge field. Template Fields List can be helpful for identifying where in your site a specific merge field is pulling data.
Template Fields List is available for all templates except Fund Statement templates.
Use Template Fields List
- Navigate to the System Data page.
- Click Templates from the left-side menu.
- Click Template Fields List from the left-side menu.
- Enter an ID number, then click Refresh.
- For instance, if you selected Tax Receipt, enter a CommunitySuite donation_id. If you selected Opportunity Letter, enter an CommunitySuite op_id.
- The curly brackets show you the available merge field, and the square brackets show you the info from a specific record (donation, opportunity, grant, etc.).
Notice that in addition to the opening tag {{#foreach_donation}} which starts the template, {{#foreach_item}} and {{/foreach_item}} surround the donation detail. This detail should appear in a table (see the example tax receipt for an example) and it will list the detail for every part of the donation. For instance, a donor sends a check for $200 - $50 to one fund and $150 to another fund. When that donation is entered as a payment, the table will list each part of that donation.
Other templates like fund statements and advance grant or scholarship letters also have opening and closing tag that require their own {{#foreach_.....}} {{/foreach_.....}} section.