Add some documentation for how to add / update grid fields from an add-on

Đang mở
#858 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tài liệu
Độ rõ ràng
Khá 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

Start by locating the user guide sections that document add-ons and grid fields, then check the referenced Channel Field behavior and the Datagrab example mentioned in the issue. Document an add-on workflow for creating or updating a grid field and adding columns, with examples that clarify how it works outside the Control Panel. Done means the guide answers how to access and modify the grid field definition.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Suggested Change
Add some documentation / examples relating to how you might add / update a grid field from an add-on (outside of CP).

Reasoning
Documentation is currently mute on this.

Additional context
Seems odd that the grid field is relegated to the depths of legacy code.
It appears that a grid field can be created by "making" a new instance of Channel Field of type 'grid' - but how do you access / add columns to the definition?
I note that Datagrab (for example) interacts with Grid fields seemingly entirely via direct db access.

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ExpressionEngine/ExpressionEngine-User-Guide

Tất cả issue của ExpressionEngine/ExpressionEngine-User-Guide

Issue tương tự

Thêm issue về Documentation

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.