Answers.Body: <p>As CiviCRM allow to have multiple Membership at the same time, there is no way for CiviCRM to understand what you want when selecting the token {membership.end_date} in the context of a contact.</p>
  
  <p>Is there a reason why you want to do this in the contact search rather than the membership search ?</p>
  
  <p>If you want to limit the contact by some criteria not available in the membership search, i recommend that you use <code>Advanced search</code>, select your criteria and set <code>Membership</code> in <code>Display Results As</code>. You will then have all the action usually available for membership.</p>
  
  <p><a href="https://i.sstatic.net/RVcIp.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/RVcIp.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-20T15:57:05.423Z
Answers.LastActivityDate: 2015-10-20T15:57:05.423Z
Answers.UserDisplayName: samuelsov
Answers.Body: <p>you need to write an Extension for the membership tokens to be available in the contact summary  - please use the below link to know more </p>
  
  <p><a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension" rel="nofollow">http://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension</a></p>
  
  <p>if you need more help please let me know - thanks </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-20T10:00:14.337Z
Answers.LastActivityDate: 2015-10-20T10:00:14.337Z
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Body: <p>I have email and letter templates that has the following</p>
  
  <p>{contact.first_name} {contact.last_name}                              </p>
  
  <p>{contact.contact_id}                              </p>
  
  <p>{membership.end_date}       </p>
  
  <p>Now all these only show when you search for memberships and print from the search.  The membership end date does not show when the 'print pdf' option is selected from the contact.</p>
  
  <p>Is there anyway they can all show when you go to print from pdf on the contact.</p>
  
  <p>thanks,
  andy</p>
  
Tags: <templates>
Title: Letter Templates Pre Populate with Membership Fields
ThreadText: # Letter Templates Pre Populate with Membership Fields
  
  (Asked by: username_0 on 2015-10-20)
  
  I have email and letter templates that has the following
  
  {contact.first\_name} {contact.last\_name}
  
  {contact.contact\_id}
  
  {membership.end\_date}
  
  Now all these only show when you search for memberships and print from the search. The membership end date does not show when the 'print pdf' option is selected from the contact.
  
  Is there anyway they can all show when you go to print from pdf on the contact.
  
  thanks,
  andy
  
  **Tags:** templates
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-10-20. Score: 1
  
  As CiviCRM allow to have multiple Membership at the same time, there is no way for CiviCRM to understand what you want when selecting the token {membership.end\_date} in the context of a contact.
  
  Is there a reason why you want to do this in the contact search rather than the membership search ?
  
  If you want to limit the contact by some criteria not available in the membership search, i recommend that you use `Advanced search`, select your criteria and set `Membership` in `Display Results As`. You will then have all the action usually available for membership.
  
  [![enter image description here](https://i.sstatic.net/RVcIp.png)](https://i.sstatic.net/RVcIp.png)
  
  
  ---
  
  ### Answer by username_2 on 2015-10-20. Score: 1
  
  you need to write an Extension for the membership tokens to be available in the contact summary - please use the below link to know more
  
  <http://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension>
  
  if you need more help please let me know - thanks
  
  
  ---
  
  