# Any help with understanding documents

**URL:** <https://community.open-emr.org/t/any-help-with-understanding-documents/13798>\
**Category:** OpenEMR Development\
**Created:** [February 27, 2020, 3:37pm UTC](https://community.open-emr.org/t/any-help-with-understanding-documents/13798 "2020-02-27T15:37:57Z")\
**Posts on this page:** 2\
**Page:** 3

<div class="post-metadata">

**Author:** ![htuck](https://community.open-emr.org/user_avatar/community.open-emr.org/htuck/32/15185_2.png) [@htuck](https://community.open-emr.org/u/htuck)\
**Post date:** [October 19, 2022, 9:08pm UTC](https://community.open-emr.org/t/any-help-with-understanding-documents/13798/41 "2022-10-19T21:08:53Z")

</div>

WOOOKAAAYYY-  
@sjpadgett if you please–  
Now it’s a couple years later, playing around with this again, and trying to add an image to the template per the instructions and hints above.

- I don’t have access to the OpenEMR v7 demo at [http://one.openemr.io/c/openemr/](http://one.openemr.io/c/openemr/) filesystem so can’t upload the image to `<img src="./../../sites/default/images/[filename]">`
- I got into ‘Practice Settings/ Document Categories’, added a category ‘Images’ to the document tree then uploaded an image named ‘CS-2ZW.jpg’ to that category:  
 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/9/2/9275f3367ef8b1cb7cd35894c7315242a8d2a641.png)
- added the following line to the top of a template:  
 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/5/0/509407a1d732d1a8bf07c79fc450e948181da66c.png)

then uploaded the template to the template repository → default patient templates’ general category. Looked at the template both there and from a pt account in the portal. All I saw instead of the img was that irritating little square icon ‘Huh? What image?’ in the template and in the portal document,  
 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/1/0/10495a2c83731d6369db7c228749f2cc5e40de18.png)

Tried both .txt and .html template files; same results for both.

- tried a different path in the template,  
 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/d/8/d8f42924454af936437e330835e2d3a4ccd43a40.png)

- changed the pic name then attempting to upload the pic to Admin/ System/ Files I get  
"Unable to create ‘/var/www/localhost/htdocs/c/openemr/sites/default/images/CS2ZW.jpg’ "

I’m out of ideas, do you have any? Or maybe I need new glasses?  
Best- HT

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [October 20, 2022, 12:36am UTC](https://community.open-emr.org/t/any-help-with-understanding-documents/13798/42 "2022-10-20T00:36:53Z")

</div>

> [@htuck](#):
>
> WOOOKAAAYYY-

@htuck  
Works for me. Image won’t render in editor unless a full path is given or correct relative path starting from portal dir. But using below renders in portal for me.

`<img src="./../../sites/default/images/id_sig.png" width='400' height='auto'>`

 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/e/a/ea1554503e69642622ea3ff943e002cb86b2be56.png)

[Previous page](https://community.open-emr.org/t/any-help-with-understanding-documents/13798.md?page=2)
