[6.x]: Control Panel settings form doesn't offer field toggle option
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by reading the Craft 6 backend Form API and the Inertia CP Form page mentioned in the issue, then compare their field and grouping options with the previous Twig form example. Done means determining whether the API can express a lightswitch that toggles a settings group, and what change would provide that behavior if it cannot.
索引モデルが issue の本文から書いたものです。
説明
What happened?
Description
A Control Panel settings form built using Craft 6's backend Form API (CraftCms\Cms\Form\Form) and rendered through the Inertia CP Form page.
Previously:
{{ forms.lightswitchField({
label: "Enable Something",
name: 'enableSomething',
on: settings.enableSomething,
toggle: '#custom-something-settings',
}) }}
<div id="custom-something-settings" class="{{ not settings.enableSomething ? 'hidden' }}">
{{ forms.textField({
label: "Additional Setting",
name: 'additionalSetting',
value: settings.additionalSetting,
}) }}
</div>
Currently, I don't think there is an equivalent like:
Field::make('Enable Something', Lightswitch::make('settings.enableSomething')
->toggle('custom-something-settings')),
Group::make('custom-something-settings', [
Field::make('Additional Setting', Text::make('settings.additionalSetting')),
]),
Craft CMS version
6.0.0-alpha.19
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
- 主要言語
- PHP
- スター
- 3.6k
- フォーク
- 712
- 平均マージ
- 12時間 40分
- マージ済み PR(30日)
- 344
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
craftcms/cms のほかの issue
-
bug repo:cms
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
craftcms/cms#20266 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug repo:cms
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
craftcms/cms#20248 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug repo:cms
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
craftcms/cms#20205 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug repo:cms
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
craftcms/cms#20203 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[5.x]: Moving an asset with “Replace it” throws TypeError: volumeUid must be of type string, null given対応中かも @i-just が 6 日前に担当しました。 オープンbug repo:cms
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
craftcms/cms#20128 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
mobile-app
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Open-Locker/Open-Locker#352 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: SCIM Users groups[].value is returned as an integer, causing authentik user discovery to failオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
grokability/snipe-it#20006 ·
メンテナーはふだん 1 日以内に返信
-
fixed
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
firefly-iii/firefly-iii#13150 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
TYPO3-Solr/ext-solr#4828 ·
メンテナーはふだん 5 日以内に返信