enonic / lib-guillotine

Apache License 2.0
3 stars 0 forks source link

No regions field on pages and layouts #276

Open poi33 opened 1 year ago

poi33 commented 1 year ago

There is no easy way to access the regions of pages or layouts.

The field PageAsJson does include it, but not as its own field

The components paths usually do have a textual representation of this. But it needs to be split out of a path string.

Is it possible to add regions so its easier to insert them into a frontend page?

Query

get () {
    components {
        path
    }
}

Result

{
    get: {
        components: {
            path: "/main/0"
        }
    }
}