Use a control file to attach a URL to an ftmap - Fluid Topics - Latest

Map Attachments

Category
Technical Notes
Audience
public
Version
Latest

When using a control file to attach a URL to an Ftmap, add the following lines to the FluidTopicsControlFile.xml file:

<?xml version='1.0' encoding='utf-8'?>
<controlFile>
  <resources>
    <resource>
      <originId>$FTMAP_ID</originId>
      <attachments>
        <attachment>
          <originUrl>$URL_TO_ATTACH</originUrl>
          <originId>my_attachment</originId>
          <displayName>My link</displayName>
          <mimeType>$MIMETYPE_OF_THE_URL_TARGET</mimeType>
        </attachment>
      </attachments>
    </resource>
  </resources>
</controlFile>

In the attachment sub node, the only parameter that must be set manually is the originURL parameter. If values for the originId and/or displayName parameters are not set manually, Fluid Topics extracts their values from that set for the originURL 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.