Answers.Body: <p>Creating custom tokens is fairly easy in CiviCRM.</p>
  
  <p>I would create a Group in CiviCRM containing the contacts of all the Board Members. By using a Group, as the Board Members change and are updated in the Group the token will automatically reflect the changes.</p>
  
  <p>Then I would program a custom token that converts <code>{board_members}</code> to a list of the names of the contacts in the Group (separated with <code>&lt;br /&gt;</code>).</p>
  
  <p>The link in @Ramesh's answer should help.</p>
  
  <p>You could probably kludge together a solution using templates or something similar, but it is probably more likely to break and more difficult to upkeep.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-05T19:46:04.527Z
Answers.Text: Okay, cool. I thought about relationships to our organization but I think you're approach is quite suitable.
Answers.UserDisplayName: nielo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-05T17:53:32.840Z
Answers.LastActivityDate: 2016-07-05T17:53:32.840Z
Answers.UserDisplayName: DaveD
Answers.Body: <p>you can create tokens to do the same job - instead of using Global variables</p>
  
  <p>that would be more easier than storing in global variables - I guess</p>
  
  <p>please refer to 
  <a href="https://civicrm.stackexchange.com/questions/7567/custom-fields-for-invoice-pdf/7569#7569">Custom fields for invoice / PDF</a></p>
  
  <p>I guess this helps !!!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-05T16:03:39.337Z
Answers.Text: Sorry if I did not explain well enough. See edit.
Answers.UserDisplayName: nielo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-05T14:52:36.803Z
Answers.LastActivityDate: 2016-07-05T14:52:36.803Z
Answers.LastEditDate: 2017-04-13T12:53:13.017Z
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Body: <p>We want to store some global variables for token substitution in civicrm. Think of adding current members of board of managers to letters or other phrases to use in mailings or pdf letters.</p>
  
  <p>Example: token </p>
  
  <p><code>{board_members}</code> </p>
  
  <p>should be substitued by</p>
  
  <p><code>Jane Doe&lt;br /&gt;
  Jim Jones&lt;br /&gt;
  Bud Foo&lt;br /&gt;
  Frieda Bar&lt;br /&gt;</code></p>
  
  <p>Any idea how to store (editable by our staff)? Or should I misuse message templates to store the content? Say I'll create a message template "Board members (don't use as template)". Or an inactive message template?</p>
  
Tags: <tokens>
Title: Where/how to save global variables?
ThreadText: # Where/how to save global variables?
  
  (Asked by: username_0 on 2016-07-05)
  
  We want to store some global variables for token substitution in civicrm. Think of adding current members of board of managers to letters or other phrases to use in mailings or pdf letters.
  
  Example: token
  
  `{board_members}`
  
  should be substitued by
  
  `Jane Doe  
  Jim Jones  
  Bud Foo  
  Frieda Bar`
  
  Any idea how to store (editable by our staff)? Or should I misuse message templates to store the content? Say I'll create a message template "Board members (don't use as template)". Or an inactive message template?
  
  **Tags:** tokens
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2016-07-05. Score: 2 | Accepted answer
  
  Creating custom tokens is fairly easy in CiviCRM.
  
  I would create a Group in CiviCRM containing the contacts of all the Board Members. By using a Group, as the Board Members change and are updated in the Group the token will automatically reflect the changes.
  
  Then I would program a custom token that converts `{board_members}` to a list of the names of the contacts in the Group (separated with ).
  
  The link in @Ramesh's answer should help.
  
  You could probably kludge together a solution using templates or something similar, but it is probably more likely to break and more difficult to upkeep.
  
  > **Comments:**
  > **username_0**: Okay, cool. I thought about relationships to our organization but I think you're approach is quite suitable.  
  
  ---
  
  ### Answer by username_2 on 2016-07-05. Score: 0
  
  you can create tokens to do the same job - instead of using Global variables
  
  that would be more easier than storing in global variables - I guess
  
  please refer to
  [Custom fields for invoice / PDF](https://civicrm.stackexchange.com/questions/7567/custom-fields-for-invoice-pdf/7569#7569)
  
  I guess this helps !!!
  
  > **Comments:**
  > **username_0**: Sorry if I did not explain well enough. See edit.  
  
  ---
  
  