Fluid Fieldtype Development - `dislpay_settings()` v.s. `grid_display_settings()` return data format
还没有人认领这个 Issue。
评估
- 难度
- 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 小时
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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
-
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 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
simonw/sqlite-utils#928 ·
维护者通常 3 天内回复
-
agentic-workflows automation repo-assist
难度 1/5 1 小时以内 新手友好度 85/100
shanselman/winget-tui#483 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
griptape-ai/griptape-nodes-library-elevenlabs#30 ·
维护者通常 1 天内回复