Skip to content

Create a Custom Page (with a custom layout) containing two areas/placeholders #190

@acarum

Description

@acarum

mxcli version | mxcli version v0.6.0-dirty (2026-04-09T16:08:35Z)

Mendix version | 11.9.0
Scenario (command/MDL script) | Could you create a CusotmPage with Master layout then put a label "Master Label" in the Main Area and another label called "RIght area" inside the RIght Area

/**
CREATE OR REPLACE PAGE MyModule.CustomPage
(
Title: 'Custom Page',
Layout: Master,
Url: 'CustomPage'
)
{
CONTAINER mainContent (Class: 'page-content') {
DYNAMICTEXT masterLabel (Content: 'Master Label', RenderMode: H2)
}

DATAVIEW RightArea (Class: 'vertical-command-bar-gallery') {
CONTAINER rightCommandBar (Class: 'vertical-command-bar') {
DYNAMICTEXT rightLabel (Content: 'Right area')
}
}
}
Expected output | The generated page should contain two lable in the MAIN and RIGHT areas

Image

Experienced output | The layout is completely wrong
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions