Skip to content

Commit e0f3bc3

Browse files
CIVICRM-1734 Change the help text for Message Templates and Scheduled Reminders to include link to CiviCRM Token Documentation page
1 parent 20a0376 commit e0f3bc3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

templates/CRM/Admin/Form/MessageTemplates.tpl

+2-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
+--------------------------------------------------------------------+
99
*}
1010
{* this template is used for adding/editing/deleting Message Templates *}
11-
{capture assign=tokenDocsRepeated}{docURL page="user/common-workflows/tokens-and-mail-merge" text="token documentation"}{/capture}
1211

1312
{if $action neq 8}
1413
<div class="help">
@@ -46,7 +45,6 @@
4645
{$form.msg_subject.html|crmAddClass:huge}
4746
<input class="crm-token-selector big" data-field="msg_subject" />
4847
{help id="id-token-subject" tplFile=$tplFile isAdmin=$isAdmin file="CRM/Contact/Form/Task/Email.hlp"}
49-
<br /><span class="description">{ts}Subject for email message.{/ts} {ts 1=$tokenDocsRepeated}Tokens may be included (%1).{/ts}</span>
5048
</td>
5149
</tr>
5250
<tr>
@@ -82,7 +80,7 @@
8280
<div class="clear"></div>
8381
<div class='html'>
8482
{$form.msg_html.html|crmAddClass:huge}
85-
<div class="description">{ts}An HTML formatted version of this message will be sent to contacts whose Email Format preference is 'HTML' or 'Both'.{/ts} {ts 1=$tokenDocsRepeated}Tokens may be included (%1).{/ts}</div>
83+
<div class="description">{ts}An HTML formatted version of this message will be sent to contacts whose Email Format preference is 'HTML' or 'Both'.{/ts}</div>
8684
</div>
8785
</div><!-- /.crm-accordion-body -->
8886
</div><!-- /.crm-accordion-wrapper -->
@@ -99,7 +97,7 @@
9997
<div class="clear"></div>
10098
<div class='text'>
10199
{$form.msg_text.html|crmAddClass:huge}
102-
<div class="description">{ts}Text formatted message.{/ts} {ts 1=$tokenDocsRepeated}Tokens may be included (%1).{/ts}</div>
100+
<div class="description">{ts}Text formatted message.{/ts}</div>
103101
</div>
104102
</div><!-- /.crm-accordion-body -->
105103
</div><!-- /.crm-accordion-wrapper -->

templates/CRM/Contact/Form/Task/Email.hlp

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
| and copyright information, see https://civicrm.org/licensing |
88
+--------------------------------------------------------------------+
99
*}
10+
{capture assign=tokenDocs}{docURL page="user/common-workflows/tokens-and-mail-merge" text="View the CiviCRM Token Documentation"}{/capture}
1011
{htxt id="id-from_email-title"}
1112
{ts}From Address{/ts}
1213
{/htxt}
@@ -40,6 +41,7 @@
4041
{/htxt}
4142
{htxt id="id-token-subject"}
4243
<p>{ts}Use a token in the Subject when you are sending mail to a number of recipients and want to include their name and / or other values from their contact record automatically in the subject line.{/ts}</p>
44+
<p>{ts 1=$tokenDocs}%1{/ts}</p>
4345
{/htxt}
4446

4547
{htxt id="id-token-text-title"}
@@ -57,6 +59,7 @@
5759
<p>{ts}Custom tokens (based on custom data) can be added for organizations as well. These tokens will not be displayed in the list of available tokens, but can be added manually. The format is {literal}{contact.custom_12}{/literal} – where 12 is the ID of the custom data field. To find the custom data field ID,
5860
go Administer > Customize Data & Screens > Custom Fields and click ‘edit’ on the field you want to use. Look at the URL. The last part of the URL will
5961
be an equal sign and a number (=12). The number (12 in this example) is the id of that custom field.{/ts}</p>
62+
<p>{ts 1=$tokenDocs}%1{/ts}</p>
6063
{/htxt}
6164

6265
{htxt id="id-token-html-title"}
@@ -82,6 +85,7 @@ be an equal sign and a number (=12). The number (12 in this example) is the id o
8285
<p>{ts}Custom tokens (based on custom data) can be added for organizations as well. These tokens will not be displayed in the list of available tokens, but can be added manually. The format is {literal}{contact.custom_12}{/literal} – where 12 is the ID of the custom data field. To find the custom data field ID,
8386
go Administer > Customize Data & Screens > Custom Fields and click ‘edit’ on the field you want to use. Look at the URL. The last part of the URL will
8487
be an equal sign and a number (=12). The number (12 in this example) is the id of that custom field.{/ts}</p>
88+
<p>{ts 1=$tokenDocs}%1{/ts}</p>
8589
{/htxt}
8690

8791
{htxt id="id-message-text-title"}
@@ -90,4 +94,5 @@ be an equal sign and a number (=12). The number (12 in this example) is the id o
9094
{htxt id="id-message-text"}
9195
<p>{ts}You can send your email as a simple text-only message, as an HTML formatted message, or both. Text-only messages are sufficient for most email communication - and some recipients may prefer not to receive HTML formatted messages.{/ts}</p>
9296
<p>{ts}HTML messages have more visual impact, allow you to include images, and may be more readable if you are including links to website pages. However, different email programs may interpret HTML formats differently - so use this option cautiously unless you have a template format that has been tested with different web and desktop email programs.{/ts}</p>
97+
<p>{ts 1=$tokenDocs}%1{/ts}</p>
9398
{/htxt}

0 commit comments

Comments
 (0)