Answers.Body: <p>If you are indeed using Drupal, a better option for displaying this information might be Drupal Views, which you can use to format and display most of the fields I suspect you would need for this kind of directory.  (You could even use Views PDF to output it as a PDF document, if you really want to take control of formatting, text/image placement, and printability.)  I'm not sure that profiles will get you where you need to go for displaying/outputting information.</p>
  
  <p>Hope this helps,
  Lesley</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-31T01:21:24.010Z
Answers.Text: After much trying, I discovered that the formatting capabilities of views (plus extra modules) are useless with data from CiviCRM, because the data is populated via a JSON request to civicrm, which completely bypasses the views formatter. It would appear that the solution lies within CiviCRM, probably via a custom report template.
Answers.UserDisplayName: Richard Grevers
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-13T16:09:37.473Z
Answers.LastActivityDate: 2015-08-13T16:09:37.473Z
Answers.UserDisplayName: Lesley Carter - BackOffice
Answers.Body: <p>I use the "Image URL" field on a profile on one of the sites I work on (although I change the label to simply "Image") and it shows up as an image with options to delete and reupload:</p>
  
  <p><a href="https://i.sstatic.net/Hizpt.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Hizpt.jpg" alt="Image field in profile"></a></p>
  
  <p><strong>EDIT:</strong> I think I see what you are referring to -- not viewing a contact that already has an image, but uploading a new image. The image doesn't preview before saving, although it does show if you reload the contact in the profile after saving. So if that is the problem, I don't think I can help you! But if the point is just to get the image in there for future reference, it should be there (and display correctly) if you save the contact through this profile, and then view the contact again in the profile.</p>
  
  <p>Preparing to upload (before saving):</p>
  
  <p><a href="https://i.sstatic.net/mkFXM.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/mkFXM.jpg" alt="Upload image"></a></p>
  
  <p>After hitting save and loading the contact back into the profile:</p>
  
  <p><a href="https://i.sstatic.net/4bRbl.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/4bRbl.jpg" alt="Upload image 2"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-26T23:31:17.883Z
Answers.Text: No, I'm using the force=1 parameter to completely disable the form aspects of the profile. I want output only. Alas, most of the documentation on profiles is about their use in forms rather than for display.
Answers.UserDisplayName: Richard Grevers
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-13T02:40:17.710Z
Answers.LastActivityDate: 2015-08-13T02:48:51.760Z
Answers.LastEditDate: 2015-08-13T02:48:51.760Z
Answers.UserDisplayName: Laryn
Body: <p>I am trying to create a profile to display contacts who are in a specific group as an HTML listing which can then be output as a print directory.</p>
  
  <p>The first field should be the contact image (although not all entries will have images). The only field I can find which seems relevant is Image-Url (Contact) - but that merely displays the URL as text.
  I tried adding formatting fields (Free HTML) before and after to wrap the output with , but that has made no difference.</p>
  
  <p>I am linking to my output (it's on an intranet) as /drupal/?q=civicrm/profile?reset=1&amp;gid=21&amp;force=1&amp;search=0</p>
  
  <p>Most of the documentation on Profiles seems to be oriented to their use as forms, not as display formatting.</p>
  
Tags: <profile>
Title: How do I include the contact image in a profile?
ThreadText: # How do I include the contact image in a profile?
  
  (Asked by: username_0 on 2015-08-13)
  
  I am trying to create a profile to display contacts who are in a specific group as an HTML listing which can then be output as a print directory.
  
  The first field should be the contact image (although not all entries will have images). The only field I can find which seems relevant is Image-Url (Contact) - but that merely displays the URL as text.
  I tried adding formatting fields (Free HTML) before and after to wrap the output with , but that has made no difference.
  
  I am linking to my output (it's on an intranet) as /drupal/?q=civicrm/profile?reset=1&gid=21&force=1&search=0
  
  Most of the documentation on Profiles seems to be oriented to their use as forms, not as display formatting.
  
  **Tags:** profile
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-08-13. Score: 2
  
  If you are indeed using Drupal, a better option for displaying this information might be Drupal Views, which you can use to format and display most of the fields I suspect you would need for this kind of directory. (You could even use Views PDF to output it as a PDF document, if you really want to take control of formatting, text/image placement, and printability.) I'm not sure that profiles will get you where you need to go for displaying/outputting information.
  
  Hope this helps,
  username_1
  
  > **Comments:**
  > **username_0**: After much trying, I discovered that the formatting capabilities of views (plus extra modules) are useless with data from CiviCRM, because the data is populated via a JSON request to civicrm, which completely bypasses the views formatter. It would appear that the solution lies within CiviCRM, probably via a custom report template.  
  
  ---
  
  ### Answer by username_2 on 2015-08-13. Score: 1
  
  I use the "Image URL" field on a profile on one of the sites I work on (although I change the label to simply "Image") and it shows up as an image with options to delete and reupload:
  
  [![Image field in profile](https://i.sstatic.net/Hizpt.jpg)](https://i.sstatic.net/Hizpt.jpg)
  
  **EDIT:** I think I see what you are referring to -- not viewing a contact that already has an image, but uploading a new image. The image doesn't preview before saving, although it does show if you reload the contact in the profile after saving. So if that is the problem, I don't think I can help you! But if the point is just to get the image in there for future reference, it should be there (and display correctly) if you save the contact through this profile, and then view the contact again in the profile.
  
  Preparing to upload (before saving):
  
  [![Upload image](https://i.sstatic.net/mkFXM.jpg)](https://i.sstatic.net/mkFXM.jpg)
  
  After hitting save and loading the contact back into the profile:
  
  [![Upload image 2](https://i.sstatic.net/4bRbl.jpg)](https://i.sstatic.net/4bRbl.jpg)
  
  > **Comments:**
  > **username_0**: No, I'm using the force=1 parameter to completely disable the form aspects of the profile. I want output only. Alas, most of the documentation on profiles is about their use in forms rather than for display.  
  
  ---
  
  