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

Aperta
#858 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
38/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
documentation

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
CSS
Stelle
22
Fork
79
Merge medio
2g 1h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ExpressionEngine/ExpressionEngine-User-Guide

Tutte le issue di ExpressionEngine/ExpressionEngine-User-Guide

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.