Fluid Fieldtype Development - `dislpay_settings()` v.s. `grid_display_settings()` return data format
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- php
- Lĩnh vực
- documentation
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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!
- Ngôn ngữ chính
- CSS
- Star
- 22
- Fork
- 79
- Merge trung bình
- 2 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 ExpressionEngine/ExpressionEngine-User-Guide
-
Inconsistent code block spacingĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
registration form docsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 55/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
-
Clarify autosave interval valueĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 55/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 46/100
Tất cả issue của ExpressionEngine/ExpressionEngine-User-Guide
Issue tương tự
-
Cleanup SetupCó thể đã có người làm @AlexanderKaran đã nhận hôm nay. Đang mởdocumentation enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
e18e/framework-tracker#769 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(docker): correct stale --db-path comments in fetch/git Dockerfiles and clarify git READMEĐang mởbug v2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
modelcontextprotocol/servers#5483 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
simonw/sqlite-utils#928 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
agentic-workflows automation repo-assist
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
shanselman/winget-tui#483 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
griptape-ai/griptape-nodes-library-elevenlabs#30 ·
Maintainer thường phản hồi trong vòng 1 ngày