context-document-has-type

If a Document is currently being observed and has a specific Type.

{
    "evaluator": "context-document-has-type",
    "condition": "{type}"
}

Example:

{
    "evaluator": "context-document-has-type",
    "condition": "my:article"
}

This block, taken from create_document, limits the content types that can be created inside folders of type my:articlesFolder to my:article:

{
    "evaluator": "context-document-has-type",
    "condition": "my:articlesFolder",
    "config": {
        "content-types": {
            "remove": true,
            "items": [{
                "key": "my:article",
                "title": "My Article"
            }]
        }
    }
}

See also