JungleDocs 365 | Configuring Word templates

In this tutorial for JungleDocs 365 you will learn:

  • What document templates are
  • What does a JungleDocs template look
  • How to configure templates
  • How to add templates to JungleDocs rules

What are document templates?

Document templates form the foundation for the documents you create using JungleDocs 365.  Document templates consist of both static and dynamic content. This means that the templates contain some content that is always there (such as your logo and address details), and some  open spaces that can later be filled with dynamic content, making each document customizable and unique.

JungleDocs 365 fills these  open spaces with dynamic content from your SharePoint and other documents by using  content controls / placeholders. These are added in the open spaces in the template file. There are 2 ways of working with content controls/placeholders:

- You can merge several smaller documents into one. We call these smaller documents  Small Parts.
You can configure Placeholders / Content Controls to be filled with metadata from your SharePoint lists.

Things to know about document templates:
  • They are assigned to rules
  • They form the foundation for the documents you create using JungleDocs 365
  • They can be either Word, Excel or PowerPoint files
  • They contain both static and dynamic content
  • They contain content controls

What does a JungleDocs template look like?

JungleDocs needs to know where exactly to place the data from your SharePoint in your document template. To let JungleDocs fill documents correctly, you will add content controls (placeholders) to the template. Document templates consist of both static content and dynamic content. Static content is content that is always there and does not change. Dynamic content is that what changes for each version of a document. 

Static content

Static content, is content that is always part of a document and that doesn't change for each document. Static content could be: your address details, lay-out, your company logo etc. The image below shows the static content for a template document for a Quote.

Dynamic content

Dynamic content are those part of a document that get filled in later and are different for each document. In case of a Quote this could be the product the client is interested in, the client's details, price, quote number, salesperson, description etc. In the image below the dynamic content  was automatically added to the document template by using JungleDocs 365.

How to add dynamic content to a static template?

To let JungleDocs 365 add dynamic content into a static document template you will need to add content controls to it. You will enter a formula or column/list name in each content control, this will tell JungleDocs from which SharePoint list to gather the data. In the below image you can see where content controls are placed in the document.

Note: Read more about content controls and how to use them in the below section.

How to configure a document template?

JungleDocs needs to know where exactly to place the data from your SharePoint in your document template. To let JungleDocs fill documents correctly, you will add content controls (placeholders) to the template.

Content control example
You could use a Content Control to let JungleDocs populate a Word Document with selected item metadata. 

How to add Content Controls to a template

  1. Open your Word template (docx) in Microsoft Word.
  2. If you haven't done so yet, turn on the Developer ribbon in Word.
    File -> Options -> Customize Ribbon -> Check “Developer” -> OK.

  3. Insert a Content Control into your document template. There are three types of content controls to choose from. These can be found in the developer tab.
    Rich Text Content Control 
    Can contain custom formatted text or other items, such as tables, pictures, or other content controls.  You would use this content control if you want to include a table, pictures, or other content controls. This data can also be formatted specifically inside this content control. You would use this for example if this content control contains a date and you want the year to be a different font than the month. 

    Plain Text Content Control
    Can only contain plain text. You can't select specific formatting for this content control; it copies the formatting used around it. This is the content control you will use most often for plain texts and simple placeholders (such as First name).

    Picture Content Control 
    Can be filled with a single picture  You would use this content control just for the inclusion of pictures.
  4. Once you have placed the content control. Open the Control Properties.

  5. Enter the Tag field value. The tag field is used to specify a formula for JungleDocs (field name, lookup field name, formula or function).  
    For example, you could enter ReportItems (you would use a table for this), to let JungleDocs populate the document with the Item Metadata from the SharePoint list you select when using a JungleDocs rule.
  6. Enter the rest of the information/extra content controls for your document. 
  7. Save the template and add it to your JungleDocs rule (scroll down to learn how to do this).
  8. When finished adding the template to a rule, you could use it for example to export the items in the list seen below.
  9. When you run the rule, your Word document would look like this:

How to add templates to JungleDocs rules?

You can either update a new template to you a rule, or edit the template that is already assigned to it. 

Modifying an existing rule
  1. To modify existing document templates, navigate to the source list/library that you will use to create your documents and reports and launch JungleDocs 365. Now select the rule you want to edit the template for. Click on the drop-down menu arrow and click Edit rule.
  2. Now select Edit document template. This will prompt the template to open in Word.
Modifying a new rule

1. To modify a template when creating a rule, first start by creating the rule. Then when configuring the rule you can select  Custom template to upload a new template, or select Edit template to edit the existing one.

Useful tip for JungleDocs' beginners:

To help you start creating document templates with Content Controls easier and faster, you can go to a list of which you want to use the Metadata. When you have done this open JungleDocs from the ribbon. Now you can select Generate sample document to download a document which includes preset content controls for the list you have opened.

Still need help? Contact Us Contact Us