Tutorial: Creating and referencing Project Fragments

Product Feature - Available from v9.0 onwards

Creating a project fragment

Within the 'New Infiniti Project' screen select either the 'Fragment Portion' or 'Fragment Page' Project Type as shown in the image below, and click 'OK'.

Note: A 'Fragment Portion' is added to a parent project in a similar way to a Section, while a 'Fragment Page' is added as its own page within the parent.

Create a template and add the following placeholders and headings:

Back in webdesign double click or drag the Template button and upload the document into the project.

Add a Tab Group and a Tab to a Layout and give it the name ‘Personal Details’. Within this tab add the following text fields.

Question Text Data Type Answer Placeholder
First Name Text First Name FName
Last Name Text Last Name LName
Middle Name Text Middle Name MiddleName
Nationality Text Nationality Nationality

Add another tab and give it the name ‘Address Details’. Within this tab add the following text fields.

Question Text Data Type Answer Placeholder
Address Text Address Address
City Text City City
State Text State State
Postcode Number Postcode Postcode
Country Text Country Country

Add a third tab and give it the name ‘Job Details’. Within this tab add the following text fields.

Question Text Data Type Answer Placeholder
Job Title Text Job Title JobTitle
Division Text Division Division
Salary Currency Salary Salary
Manager’s Name Text Manager Manager

Including a project fragment in another project

Create a new Content type project in design as shown in image below:

From the bar on the side select Fragments and drag the fragment that you created in the previous step onto the question set:

The fragment created in previous steps has now been added to the content project. The corresponding document will display under the added fragment as shown in image below:

Create a new word document and upload the template with the following text below.

“This is a new Employment contract created by {{CreatorName}}. Below are the details of the new employee.

{{InsertProjectFragment}}”

Add a text fields to the new page 1 and map the relevant placeholders as shown in image below:

Note: You can also make the Fragment template an attachment by simply removing the placeholder. Selecting the template under the fragment and checking the fragment check-box as shown in image below.

Save your changes in design. Publish and run content type project. The generated document will look similar to the following screenshot.