Navigation

  • index
  • next |
  • previous |
  • Plumsail Documents Documentation »
  • Word DOCX templates »

Getting started

  • Create documents from template
  • Use Zapier
  • Use Power Automate
  • Use Power Apps
  • Use as REST API

User guide

  • Processes
  • API Keys
  • Reports
  • Subscriptions
  • Account settings
  • Invite team members to account
  • Power Automate actions reference
  • REST API reference

Templates syntax

  • Word DOCX templates
    • How it works
    • Lists
    • Tables
    • Table of contents
    • Links and endnotes
    • Loops and nesting
    • Charts
    • Conditionally hide blocks
    • Pictures
    • Automatic numbering
    • QR codes
    • Barcodes
    • Aliases
    • Operations
    • Value formatters
    • Value properties
    • Update document metadata
    • Demos
  • Excel XLSX templates
  • PowerPoint PPTX templates
  • Fillable PDF
  • HTML templates
  • Value formatters in DOCX, XLSX and PPTX templates
  • Value properties in DOCX, XLSX and PPTX templates
  • Operations in DOCX, XLSX and PPTX templates
  • Aliases in DOCX, XLSX, and PPTX templates

PDF processing and more

  • Convert DOCX, XLSX, PPTX, HTML to PDF
  • Convert DOC, XLS, PPT to DOCX, XLSX, PPTX
  • Extract data from fillable PDF forms
  • Protect PDF files
  • Add watermarks
  • Split PDF
  • Merge PDF
  • Compress PDF
  • Read CSV files
  • Convert CSV files to Excel
  • Extract data using regular expressions
  • Fill merge fields in DOCX document

General

  • Licensing details
  • Architecture
  • Data protection and security
  • Service level agreement

2000+ integrations

  • All
  • eSignature
  • Forms & Surveys
  • Sales & CRM
  • Commerce
  • Communication
  • Content & Files
  • Human Resources
  • Marketing automation
  • Analytics & Reporting
  • IT & Engineering
  • Productivity
  • Customer support
  • Your custom service
Documentation › Word DOCX templates › Links and endnotes

Links and endnotes¶

Content

  • Links

  • Endnotes

Create DOCX document from template action allows you to add dynamic hyperlinks to a location on the web, as well as endnotes and footnotes.

You can download the source document and the result document for the example described below in links and endnotes demo.

Links¶

Let us assume we have a list of online learning resources.

JSON representation of the object:

[
    {
        "name": "The Open University",
        "description": "Distance and online courses. Qualifications range from certificates, diplomas and short courses to undergraduate and postgraduate degrees.",
        "linkName": "Go to the site",
        "linkURL": "http://www.openuniversity.edu/courses"
    },
    {
        "name": "Coursera",
        "description": "Online courses from top universities like Yale, Michigan, Stanford, and leading companies like Google and IBM.",
        "linkName": "Go to the site",
        "linkURL": "https://plato.stanford.edu/"
    },
    {
        "name": "edX",
        "description": "Flexible learning on your schedule. Access more than 1900 online courses from 100+ leading institutions including Harvard, MIT, Microsoft, and more.",
        "linkName": "Go to the site",
        "linkURL": "https://www.edx.org/"
    }
]

Now, let us take a look at the source template for this structure:

External links template

We designed a table with a header and just one row that contains our tags. The templating engine is smart enough to understand what content needs to be duplicated.

To refer properties of the objects we just used the names of the properties:

{{name}}, {{description}}, {{linkName}}, {{linkURL}}.

To create a hyperlink to a location on the web we select the text that we want to display as a hyperlink, in the Insert tab in MS Word, click Link, navigate to the Existing File or Web Page tab and add a tag into the Address field:

Insert hyperlink: URL

Endnotes¶

We have also added endnotes to our template. To do that please click where you want to add an endnote, click References in the top ribbon and Insert Endnote.

Insert endnote

Endnotes and footnotes maintain the context of their definition. This allows the template engine to replace multiple tags which belong to the same context.

You can see the result of rendering below. The templating engine created web hyperlinks and endnotes in the document:

External links result
Previous
Table of contents
Next
Loops and nesting in DOCX templates

Navigation

  • index
  • next |
  • previous |
  • Plumsail Documents Documentation »
  • Word DOCX templates »