Fluid Fieldtype Development - `dislpay_settings()` v.s. `grid_display_settings()` return data format
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 38/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- php
調査の方向性
The issue points to the Fluid Fieldtype Development documentation and includes an example of the return formats for standard and grid content types. Start by locating that section in the user guide and compare its guidance with the example. Done means the documentation explains the expected display_settings() and grid_display_settings() return formats for grid fields.
索引モデルが issue の本文から書いたものです。
説明
Suggested Change
To display settings for field types that support grid content types, the array returned from display_settings() method is a bit different.
Example: The relationship field makes this distinction by checking for the parent content type within the
display_settings()method routine. See here: https://github.com/ExpressionEngine/ExpressionEngine/blob/61e559413f40324d888ff9ebf4f43dc5f74e8ea1/system/ee/ExpressionEngine/Addons/relationship/ft.relationship.php#L789-L797
Standard Channel Field display_settings()
$settings = array(
// some SharedForm field settings
);
// return settings for standard channel field
return array('field_options_custom_field' => array(
'label' => 'field_options',
'group' => 'custom_field',
'settings' => $settings
));
Fluid Field display_settings()
$settings = array(
// some SharedForm field settings
);
// return settings for standard channel field
if ($this->content_type() == 'grid') {
return array('field_options' => $settings);
}
NOTE: this should also be the format for data returned from
grid_display_settings()
Reasoning
The documentation for Fluid Fieldtype Development does not explain this.
Additional context
@intoeetive I tried to look and see if this documentation already existed, but I do not believe that it does. If I missed it, please let me know!
- 主要言語
- CSS
- スター
- 22
- フォーク
- 79
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ExpressionEngine/ExpressionEngine-User-Guide のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 55/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 55/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 46/100
ExpressionEngine/ExpressionEngine-User-Guide の issue をすべて見る
似ている issue
-
hermes-queue
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
chrisalunlloyd2-sudo/mindpalace#337 ·
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 87/100
OWASP/CheatSheetSeries#2905 ·
メンテナーはふだん 1 日以内に返信
-
Cleanup Setup対応中かも @AlexanderKaran が今日担当しました。 オープンdocumentation enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
e18e/framework-tracker#769 ·
メンテナーはふだん 1 日以内に返信
-
bug v2
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
modelcontextprotocol/servers#5483 ·
メンテナーはふだん 1 日以内に返信