Two different animals! The CustomTemplate.js I assume is for the original and my fax module email and sms notification template.
What you want is to manage the templates for portal and demographics documents in the Portal Dashboard.
Sandra and @htuck updated the wiki however, i’m getting ready to put up a reorg’ed portal PR today maybe.
Kind of cool stuff: Patient Documents for portal and staff rework