# Add Directives {Variables} - Portal Templates - Editor

**URL:** <https://community.open-emr.org/t/add-directives-variables-portal-templates-editor/20649>\
**Category:** Day-to-Day Users\
**Created:** [June 7, 2023, 7:11am UTC](https://community.open-emr.org/t/add-directives-variables-portal-templates-editor/20649 "2023-06-07T07:11:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![levijustus](https://community.open-emr.org/user_avatar/community.open-emr.org/levijustus/32/18557_2.png) [@levijustus](https://community.open-emr.org/u/levijustus)\
**Post date:** [June 7, 2023, 11:38am UTC](https://community.open-emr.org/t/add-directives-variables-portal-templates-editor/20649/2 "2023-06-07T11:38:39Z")

</div>

Dear All, I figured our this out frim a thread. You just need to add {DEM:ss} DEM is demographics and ss is the field id.

> [@Adding Patient Portal Document Templates to OpenEMR Patient Documents](https://community.open-emr.org/t/adding-patient-portal-document-templates-to-openemr-patient-documents/12141/10):
>
> variety

- {LBFxxx:fieldid} (data from the specified field of a LBF instance)
- {DEM:fieldid} (data from the specified field of patient demographics)
- {HIS:fieldid} (data from the specified field of patient history)

---

_[View the full topic](https://community.open-emr.org/t/add-directives-variables-portal-templates-editor/20649)._
