Skip to main content

 Tutorials

Task-driven tutorials and recipes for PageSeeder

How to insert placeholders

Skills requiredXML
Time required (minutes)15
Intended audienceAuthor
DifficultyEasy
CategoryDocument

Objective

A placeholder is a marker for some simple text content that is repeated throughout the publication, for example [company name]. These placeholders will be replaced by their corresponding actual value in the publication metadata properties.

This tutorial demonstrates how to insert them, set the actual value and export to Word DOCX.

Prerequisites

To complete this tutorial requires:

  • PageSeeder contributor access to a group on a server with PageSeeder version 6 or later installed.

Tutorial

Creating a publication

Create a publication root document and content as follows:

  1. In PageSeeder go to a group.
  2. In this group create or open an existing document of the publication root type (e.g. references ).
  3. If it’s not already a publication click the Document information icon on the right, click Make this document a publication, ensure there is a Publication ID and for this example, select Publication type "default". Click Submit then Save.
  4. If there is no existing content, double-click in the root document, click Browse and create a document (for example default type), select it and save. On the root document press Ctrl-S to save everything.
  5. Click a content document, add some headings and paragraphs if required.

Insert placeholders

A placeholder is a marker for some simple text content that is repeated throughout the publication, for example [company name]. These placeholders will be replaced by their corresponding actual value in the publication metadata properties.

  1. In a content document, enter edit mode by double clicking on a paragraph.
  2. Place the cursor in the text and type [[company name]] and press space.
  3. Press Ctrl-S then click on another location in a paragraph.
  4. Type [c and click on the [company name] that appears. This will automatically add an existing placeholdler.
  5. Press Ctrl-S then click the edit icon (top right) to turn edit mode off.
  6. A warning should appear next to the placeholders to indicate they have not been defined.
  7. Click the (i) Document information icon in the right margin.
  8. Click on the Publication tab and then on Add property.
  9. For Title enter Company name and for Value enter ACME Pty Ltd
  10. Click Submit then click Save.
  11. Click the [iii] Resolve placeholders icon at the top and ACME Pty Ltd should appear in multiple places.

Export as a Word document

  1. Go to any document in your publication.
  2. Click the Document export (rocket) icon in the left margin.
  3. Under the Choose an export action drop down, select Export publication as DOCX and click Run.
  4. Open the document in Microsoft Word and see how the company name has been inserted.
Created on , last edited on

Available tutorials