Each field type should provide an exhaustive description of
- their columns and indexes (when #415044: Indexes for field storage. gets in)
- their additional behavior on hook_field_load() (additional 'columns', filtering of invalid references...)
- their field and instance settings

Each formatter and widget should provide an exhaustive description of
- their settings
- for widgets, their '#properties' (when #362058: Field Types: Make widget FAPI elements field agnostic. gets in)

Ideally, those informations should not be scattered in various PHPdocs, but gathered at the beginning of each field-type module. Not sure about the exact format and structure, proposals welcome :-)

Comments

Anonymous’s picture

I will be posting the documentation for taxonomy term field's settings here, right? Then we can decide what structure and format is appropriate by making an object of my patch, ripping it apart and reassembling it.

erle’s picture

Assigned: Unassigned » erle

Been working on this past few weeks, have some notes down. Will get down to putting down some ideas here to take this forward over this week sometime. Help, Ideas and Directions will be much appreciated, Documentation is not my forte.

kevindivdbyzero’s picture

Hello... do either of you have any accumulated notes that might be useful for producing some interim documentation? There is a gaping void on this topic, and I'd love to contribute my bit towards filling the gap.

erle’s picture

hey I have some notes, been gathering info on it, I got stuck with some pressing matters and got sidetracked.
Will post sometime this weekend or early next week latest. If you have some stuff go ahead and post, or if u wish we could collaborate ?
What would be useful is if you have any ideas about the best way to present the info. ( Personally I find standard table listing hard to read ), but I suppose its where we start.

Also, thanks for the ping, Id actually forgotten about this :)
( hanging head in shame ) :)

erle’s picture

hey all, where do I post the information ?

do I just attach the file as a new post for review? Since this is doc oriented, its a listing of fields and their settings etc.. along with sample code I have used to build up stuff, which I have been collecting... could someone please point me in the right direction?

Thanks

yched’s picture

Issue tags: +Needs documentation

@erle : great ! I'd suggest you attach what you have as a file upload in this thread (preferably in an opendoc format if it doen't fit in a plain txt file)

Also, tagging so that the documentation team can chime in about the best place to put this.

jhodgdon’s picture

Component: field system » documentation
Issue tags: -Needs documentation

Moving to docs component, since this is apparently a purely docs issue.

So... Any file can have a @file header at the top, and this would probably be a good place to put some of this information. You can also make a group/topic for each field if that is easier.

That assumes you think the information should be on api.drupal.org. The other option would be to make a section in the online handbook for this information instead, which has advantages (easier to update, doesn't require a patch) and disadvantages (less likely to be updated if the code changes). Also, we don't want volumes of information on api.drupal.org (such as sample code, for the most part), so if you are planning on writing tutorials or code samples, drupal.org would be a better location.

Does that help?

erle’s picture

got loads of help at the doc code sprint @ Drupalcon London 2011, thanks all . I can finally get down to contributing this in.

@jhodgdon I'm thinking, a split, a few essentials in the api not to clutter it as mentioned and will put some more detailed help, explanations and perhaps some examples too into the handbook section. I think that is the best way forward, since the docs which would into the handbook sections are mostly specific to 7.x and would likely require a change for future releases anyway.

jhodgdon’s picture

Version: 7.x-dev » 8.x-dev
Issue tags: +Needs backport to D7

erle: that sounds like a good plan... (#8)

And by the way, at this point you need to patch Drupal 8, and then backport to Drupal 7.

jhodgdon’s picture

Bump. Is anyone still thinking of working on this?

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Triaged at a triage meeting in #documentation.

@jhodgdon asked for if anyone was interested in working on this 11 years ago and there has been no response. There I am closing.

If you are interested in adding documentation for field types, it is better to open a new issue. Thanks.