Editing document templates

From ISPWiki

Jump to: navigation, search

A BILLmanager document, such as invoice or contract is a result of XSLT transformation of the XML document with information and the document template in an XSLT format. When changing a document template, consider the following:

  • You can view the XML structure of the document with information (all the fields that can be used in a template) by adding "out=xml" to the print function URL.

My example:

https://localhost/manager/billmgr?func=credit.print&elid=102&out=xml
  • Each template should be a valid XSLT document (learn more at http://www.w3.org/TR/xslt )
  • The following lines are located in the document
<xsl:template match="invoice[@template='doc_2']">  

where 2 is a template code, you should use it when creating your own templates

  • If you need more fields, you add them. See the article Add your fields for more details.
  • Document template's files are located in
/usr/local/ispmgr/etc/docs/
  • Initial versions are located in the directory
/usr/local/ispmgr/etc/dist/docs/
Was this helpful? Yes | No
Personal tools