Example to add a URL to a map attachment - Fluid Topics - Latest

Map Attachments

Category
Technical Notes
Audience
public
Version
Latest

The following example shows how to add a URL to a document attached to a DITA map that was already uploaded to Fluid Topics:

  1. Create a FluidTopicsControlfile.xml control file with an originUrl element as follows.

    <?xml version="1.0" encoding="UTF-8"?>
    <controlFile>
        <resources>
            <resource>
                <filePath>my_map.ditamap</filePath>
                <instances>
                    <instance>
                        <filePath>version1.ditaval</filePath>
                        <attachments>
                            <attachment>
                                <khubId>$ATTACHMENT_KHUB_ID</khubId>
                                <originUrl>https://my_target_website.com</originUrl>
                            </attachment>
                        </attachments>
                    </instance>
                </instances>
            </resource>
        </resources>
    </controlFile>
    
    1. Compress the FluidTopicsControlFile.xml file in a ZIP archive. 1. Upload the ZIP archive to Fluid Topics through the source used to publish the attachment.

Only URLs beginning with http:// or https:// resolve correctly in Fluid Topics.