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.
Effingo
{
"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"
}
]
}