Authorized administrators can use a control file to replace an Ftmap attachment by adding the following lines to the FluidTopicsControlFile.xml
file:
<?xml version='1.0' encoding='utf-8'?>
<controlFile>
<resources>
<resource>
<originId>$FTMAP_ID</originId>
<attachments>
<attachment>
<originId>my_old_attachment</originId>
<displayName>My attachment</displayName>
<filePath>$NEW_ATTACHMENT_FILENAME</filePath>
<mimeType>$ATTACHMENT_MIME_TYPE</mimeType>
</attachment>
</attachments>
</resource>
</resources>
</controlFile>
In the attachment
sub node, the only parameter that must be set manually is the filePath
parameter. If values for the filename
, originId
, and/or displayName
parameters are not set manually, Fluid Topics extracts their values from that set for the filepath
parameter. If a value is not set for the mimeType
parameter, Fluid Topics computes it automatically.
Be careful not to confuse the originId
metadata associated with a map attachment and the originId
metadata associated with a map. The first is defined at the attachment level within the node of an Ftmap file. The second can be retrieved in the document's Metadata journal.