Skip to content

No CREATE for building blocks and page templates #1941

Backlog

Description

@GlennCorvers

Description

Building blocks and page templates can be listed and described (LIST BUILDING BLOCKS, DESCRIBE BUILDING BLOCK, USE BUILDING BLOCK), but not created or changed. A design system done headless (shared page parts that developers drag in from the toolbox, and page templates for new pages) therefore cannot be written with MDL, and has to fall back to snippets.

Proposal

  • CREATE [OR MODIFY] BUILDING BLOCK Module.Name [FOLDER '...'] (Category: '...', ...) { <widgets> }, with the same widget syntax as CREATE SNIPPET, and DESCRIBE printing it in that form.
  • CREATE [OR MODIFY] PAGE TEMPLATE Module.Name (Layout: Module.Layout, Category: '...', ...) { <widgets> }, likewise.
  • DROP BUILDING BLOCK / DROP PAGE TEMPLATE.

Current behaviour

CREATE BUILDING BLOCK MyFirstModule.BB_Card { DYNAMICTEXT t (Content: 'x') };
-> line 1:7 no viable alternative at input 'createbuilding'
CREATE PAGE TEMPLATE MyFirstModule.PT_Form (Layout: Atlas_Core.Atlas_Default) { DYNAMICTEXT t (Content: 'x') };
-> parsed as CREATE PAGE named "TEMPLATE": mismatched input 'MyFirstModule' expecting {FOLDER, '('}

Related: #1886 (building blocks cannot be altered).

Version

  • mxcli: v0.33.0 (2026-11-22T15:42:43Z)
  • Mendix 11.12.4, Windows 11

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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