Copy articles

To enable the Copy Article feature in various plugins, the Writer plugin is needed, and configuration needs to be handled in advance.

Article Copy info

Mappings needed in Writer plugin

Needed changes in Content Agent

Unless you have already configured Content Agent for CCA, you will need to make changes in the Content Agent plugin. Here is an example of such configuration:

{
        "ca-provider": {
                "default": true,
                "cca": {
			          "baseUrl": "${DBKS:CCA_URL}"
		},
                "opencontent": {
                        "host": "${DBKS:CA_OC_PROVIDER_URL}"
                },
baseURL
${DBKS:CCA_URL}
KeyStore name: CCA_URL
Key Value: https://cca-eu-west-1.saas-stage.infomaker.io/

Cleanup/remove

It is possible to clean up the article when the copy is made, here is an example of such a cleanup. We'll be adding more examples and possibilities / restrictions:

{
    "remove": [
        {
            "element": "meta",
            "data": [
                "provider"
            ]
        },
        {
            "element": "link",
            "data": {
                "rel": "mainchannel",
                "type": "x-im/channel"
            }
        },
        {
            "element": "link",
            "data": {
                "rel": "channel",
                "type": "x-im/channel"
            }
        },
        {
            "element": "link",
            "data": {
                "rel": "subject",
                "type": "x-im/section"
            }
        },
        {
            "element": "itemMetaExtProperty",
            "data": {
                "type": "imext:header"
            }
        }
    ]
}
        {
            "element": "object",
            "data": {
                "type": "x-im/newsvalue"
            }
        },

Plugin mappings

In each plugin that supports copying, you will also need to add the mapping for this feature

Last updated

Was this helpful?