To detach a map attachment from an Ftmap by its khubId, add the following lines to the FluidTopicsControlFile.xml file:
<?xml version='1.0' encoding='utf-8'?>
- originId expects the ft:originID defined for the Ftmap in the Ftmap file. It can be retrieved from the Metadata Journal, in the ft:originId field. If no ft:originID was defined, it takes the Ftmap filepath value.
- isAttached expects the false value to detach the attachment from the Ftmap.
- khubId is the ID given to the file to detach by the FluidTopics connector. It is derived from the originId – or filepath if no originId was set – and the source. It is unique and can be retrieved by using a web service or from the URL of the map attachment when it is opened in the Viewer page: http://mysite.fluidtopics.net/viewer/book-attachment/$PUBLICATION_KHUB_ID/$MAP_ATTACHMENT_KHUB_ID
The Time Machine User Guide Ftmap has two attachments: the Time Machine Mounting Scheme URL and the Spare Part Price List PDF file.
To detach Spare_Part_Price_List.pdf from the Time Machine User Guide Ftmap, one possibility is to use its khubId.
When the Spare Part Price List attachment from the map is opened in the Viewer page, you can retrieve its khubId from the URL of the page: http://mysite.fluidtopics.net/viewer/book-attachment/cbQHcjWRiKpsP2DSB0NXqw/pcwi0pKPqMj9v52bTMS~XQ
The following lines are added to the FluidTopicsControlFile.xml file to detach the PDF file from the Time Machine User Guide Ftmap:
Once published to Fluid Topics, the Spare Part Price List document is not available anymore in the Attachments tab of the Time Machine User Guide Ftmap.