XMetaL Tips and Tricks
XMetaL Community Forum › XMetaL Tips and Tricks › XMetaL Author for SharePoint, Part 4 of n – Drag-n-Drop
-
nhu1 July 21, 2021 at 10:06 am
XMetaL Author for SharePoint, Part 4 of n – Drag-n-Drop
July 21, 2021 at 10:06 amParticipants 0Replies 0Last Activity 1 year, 8 months agoDrag-n-Drop
This section describes the behavior of dropping one or more SharePoint file items from [ResourceManager] or [Search Result Set] into an opened xml file in XMetaL.
This section does not apply to DITA documents. DITA customization controls drag-n-drop behavior separately.
If an image file item is dropped, an image link is created based on <Images>-<Image> configuration in the corresponding .ctm file. The first valid <Image> configuration at the drop point will be used to create the corresponding xml fragment.
If a non-image file item is dropped, it can be inserted as a reference or its content will be copied into the receiving document.
- The behavior is configured by [Repositories -> XMSP–Configure Settings -> DragDrop].
- If dropped as a reference, a link is created based on <Links>-<SimpleLink> configuration in the corresponding .ctm file. The first valid <SimpleLink> configuration at the drop point will be used to create the corresponding xml snippet.
- The link value format is decided by [reference.mode] from [Repositories -> XMSP–Configure Settings -> Linking].
- If .ctm file does not have <SimpleLink> configured, only drop-as-copy is provided.
- If dropped as a copy of xml fragment, all images and links within the fragment will be rebased if the link attribute value is a relative path.
The final xml creation can be further customized/controlled in [${XMetaL} \CRCL\adapters\sharepoint\addin\addin.js]. User can write customization code based on the specific requirements.
-
AuthorPosts
- You must be logged in to reply to this topic.