Tutorials

Task-driven tutorials and recipes for PageSeeder

How to create a new document type

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

Objective

Document types are a key concept in how PageSeeder represents and validates structured text. 

This tutorial shows how to setup a custom document type. It is aimed at developers but could be of interest to analysts or technical writers.

Prerequisites

Note

No additional software is required, however users must have a role of administrator on the PageSeeder server.

Instructions

Switch to the developer perspective

1.PNG

The Developer tab will now become visible. Hover over it and click on 'Document config'.

2.PNG

 

 

Click on 'Create document type'. A box will popup asking for entry of the name of the document type that is to be created. For the purpose of this tutorial we will call the document type 'movie_information'.

3.PNG

Press Create to be directed to the screen below. A document-template.psml file will need to be created next, otherwise the document type will not save. Click on the first 5.PNGicon to create a document template.

4.PNG

Click on the first line of the document-template.psml file and hit the space bar. This will allow the generic file to be saved and it can be modified later.

6.PNG

After clicking save, the new document type 'movie_information' will display on the document types screen.

7.PNG

It can now be selected when creating a new document.

8.PNG

Once this has been completed, see next tutorial: How to create a properties fragment.

Created on , last edited on