Transformation

A backend service called Effingo is used to perform transformation of article copied using PageHub. Using a button in the PageHub settings an administrator can edit the transformation configuration.

The config for transformation is per unit. This is stored within Effingo's context so this configuration will not be changed if you reset to default config and is not exported when using export/import config from the plugin configuration page. How to configure transformation config to work as you want, please use Effingo's document below.

Effingo

Test configuration is a utility that let you test the configuration before you save it. First update the configuration in Transformation config (JSON). Press the Test configuration button, enter a UUID to an article, and click on Run test. After that a JSON editor will show with the changes that is made with the current configuration. Nothing is changed or created, this is just for testing the current configuration. When everything looks as expected, press SAVE button and the configuration is updated.

Here is an example of what it can look like. See separate documentation regarding Effingo for further details.

{
        "transformations": [
                {
                        "conditions": {
                                "match": {
                                        "blocks": [
                                                {
                                                        "type": "x-im/teaser"
                                                }
                                        ]
                                }
                        },
                        "updates": {
                                "remove_blocks": {
                                        "blocks": [
                                                {
                                                        "type": "x-im/teaser"
                                                }
                                        ]
                                }
                        },
                        "name": "Remove teaser"
                },
                {
                        "updates": {
                                "document_status": "draft"
                        },
                        "name": "Set article status"
                },
                {
                        "conditions": {
                                "document_status": "usable",
                                "match": {
                                        "properties": [
                                                {
                                                        "name": "imext:haspublishedversion",
                                                        "value": "true"
                                                }
                                        ]
                                }
                        },
                        "updates": {
                                "set_properties": {
                                        "properties": [
                                                {
                                                        "name": "imext:haspublishedversion",
                                                        "value": "false"
                                                }
                                        ]
                                }
                        },
                        "name": "Unpublish"
                }
        ]
}