[6.x]: UI API doesn't appear to have a scoped container Node to nest a component's settingsUi() under a path
Maintainer thường phản hồi trong vòng 1 ngày
@riasvdv đang làm issue này rồi.
Từ ngày 9/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
What happened?
ConfigurableComponentInterface::settingsUi() declares Control paths relative to the component's settings (as docs/ui.md recommends). When that UI is embedded inside a larger UI — e.g. a field layout element on an element edit page that shows the selected component's settings under settings — there's no way to place it under a path prefix.
The twig equivalent was something like:
{% namespace 'providerSettings' %}
{{ provider.getSettingsHtml()|raw }}
{% endnamespace %}
In the inertia page context it appears:
UiContext::$namespaceapplies to a whole resolved UI, not a subtree.- Group children "resolve at the surrounding namespace", so they keep their declared paths.
We currently walk the UI and re-path each Field's Control with Control::withPath() (and give them one delta group so the editor submits the whole settings array instead of replacing it with the single changed key). It works, but it's a stopgap that every plugin with component settings will rewrite.
What would help: a container Node like Scope::make(['settings'], $component->settingsUi()->nodes()) that resolves its children under a path prefix (and optionally assigns a shared delta group).
Craft CMS version
6.0.0-alpha.20
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
- Ngôn ngữ chính
- PHP
- Star
- 3.6k
- Fork
- 706
- Merge trung bình
- 12 giờ 30 phút
- Pull request đã merge (30 ngày)
- 274
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của craftcms/cms
-
[6.x]: Colored chips: link blue has low contrast on tinted backgroundsCó thể đã có người làm @brandonkelly đã nhận 2 ngày trước. Đang mởbug repo:cms
craftcms/cms#19984 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug repo:cms
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
craftcms/cms#19980 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[6.x]: Text in some input fields is clipped at the bottom on WindowsCó thể đã có người làm @brianjhanson đã nhận 7 ngày trước. Đang mởbug repo:cms
craftcms/cms#19928 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug repo:cms
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
craftcms/cms#19916 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[6.x]: AdminTable not available for plugin index and settings screensCó thể đã có người làm @brianjhanson đã nhận 8 ngày trước. Đang mởbug repo:cms
craftcms/cms#19912 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
nunomaduro/collision#375 ·
-
enhancement good first issue hacktoberfest help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
thetheago/laravel-seeder-versioning#19 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
HTTP::setGetVar() duplicates the base path for root-relative URLs when the site runs in a subfolderĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
silverstripe/silverstripe-framework#12034 ·
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
loginWithCustomTokenExchange() fails when an organization is configuredCó thể đã có người làm @awss1i đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
auth0/auth0-PHP#883 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày