Skip to content

fix!: a page title widget takes no Content - #2775

Merged
ako merged 1 commit into
mainfrom
claude/issue-triage-prioritization-24rqgv
Dec 2, 2026
Merged

ako merged 1 commit into
mainfrom
claude/issue-triage-prioritization-24rqgv

Conversation

@ako

@ako ako commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Fixes #2768 (upstream mendixlabs#2026).

Problem

title t (Content: 'X') passed check and exec, and mx check was clean, yet the title rendered the page's Title, not X. alter page … set (Content: 'X') on t, or set (Caption: …), failed with "widget has no Content property" and nothing saying what to use. Translations for such titles matched nothing, because no Content was ever stored.

Mendix's page title widget (Forms$Title) stores no text: it shows the page's Title. The writer has dropped a caption since mendixlabs#1373. Everything on the reading side still offered Content::

  • the native-props read list;
  • the builder;
  • describe, from a caption an older mxcli had stored;
  • mxcli syntax page, which showed TITLE name (Content: 'Heading') three times;
  • one doctype example.

Fix (breaking, CHANGELOG ### Changed)

  • check: the title reads no Content, so it is refused, as MDL-WIDGET52 under mdl 1 and the existing MDL-V1-WIDGETPROP warning under mdl 0. The hint names the page's Title: and dynamictext name (Content: '…', RenderMode: H2) for heading text of its own.
  • alter … set: Content, Caption and their params on a title are refused with the same pointer, including alter page … { set (Title: '…'); }.
  • describe: no longer prints a Content: that Studio Pro ignores.
  • Syntax help and examples: they now teach a dynamictext heading. The doctype example, a test fixture and an existing test's title no longer carry Content.

Evidence

  • Tests first:
    • mdl/executor/title_content_2768_test.go (check refusal with hint, plain-title control, describe) and mdl/backend/pagemutator/title_content_2768_test.go (alter message) failed before the fix.
  • Live, Mendix 11.12.6:
    • check refuses title pageTitle1 (Content: 'Second heading') with the hint.
    • A plain title pageTitle1 creates, and mx check reports 0 errors.
    • alter … set (Content: …) on it is refused with the pointer.
  • make ci-local passed. The targeted tests were re-run on the new main.

Generated by Claude Code

`title t (Content: 'X')` passed check and exec, and the title still showed
the page's Title: Forms$Title stores no text, and the writer has dropped
it since #1373. The reads list, the builder, describe and the syntax help
still advertised it. check now refuses Content on a title (MDL-WIDGET52
under mdl 1) with a hint to use a dynamictext heading; ALTER SET Content
or Caption on a title says the same; describe stops printing it.

Fixes #2768

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
@ako
ako merged commit 9641264 into main Dec 2, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[up#2026] ALTER PAGE SET Content/Caption on TITLE widget: 'widget has no Content/Caption property' — CREATE PAGE's TITLE Content silently not applied

2 participants