Attach Several Files to Several Instances of a DITA Map - Fluid Topics - 3.6 - Technical Notes

Manage Map Attachments in Fluid Topics

Product
Fluid Topics
Fluid Topics Version
3.6
Category
Technical Notes
Language
English
Target Audience
public

The following lines show how to attach the Pufferfish Song audio file to the Novice instance of the Pufferfish DITA map, and the Pufferfish Circles image to its Expert instance:

<?xml version='1.0' encoding='utf-8'?>
<controlFile>
<resources>
<resource>
<filePath>_pufferfish.ditamap</filePath>
<instances>
<instance>
<filePath>Novice.ditaval</filePath>
<attachments>
<attachment>
<originId>pufferfish-video</originId>
<displayName>Pufferfish Video</displayName>
<filePath>pufferfish-video.mp4</filePath>
</attachment>
</attachments>
</instance>
<instance>
<filePath>Expert.ditaval</filePath>
<attachments>
<attachment>
<originId>Circles</originId>
<displayName>Pufferfish Circles</displayName>
<filePath>pufferfish-circles.jpg</filePath>
</attachment>
</attachments>
</instance>
</instances>
</resource>
</resources>
</controlFile>

Once published to Fluid Topics, the Pufferfish Circles image is available for the Novice instance of the Pufferfish DITA map, and the Pufferfish Video file is available for the Expert instance of the map in the Attachments tab of the Reader page.

It is necessary to create one instance element for each DITAVAL variant:

- It is possible to provide more instances, and declare the map attachment only once for all of them.
OR

- It is possible to provide the instance only once, and then declare all attachments.
See the following section for use examples.