docs.woltlab.com icon indicating copy to clipboard operation
docs.woltlab.com copied to clipboard

Add more code examples to the FormBuilder documentation

Open BurntimeX opened this issue 1 year ago • 1 comments

The FormBuilder documentation is currently very abstract and contains few code examples of how to use it for certain things.

The blog article about the introduction of the FormBuilder, for example, contains some examples that could be included in the documentation: https://www.woltlab.com/article/209-new-features-for-developers-in-woltlab-suite-5-2/

The following sections lack examples:

  • [x] Overview https://docs.woltlab.com/6.1/php/api/form_builder/overview/
  • [x] Form builder usage in dialogs (aka Psr15DialogForm); can replace the section about DialogFormDocument
  • [ ] Form data handler: https://docs.woltlab.com/6.1/php/api/form_builder/validation_data/#form-data
  • [ ] Several form fields: https://docs.woltlab.com/6.1/php/api/form_builder/form_fields/
  • [ ] Form structure: https://docs.woltlab.com/6.1/php/api/form_builder/structure/#imaximumlengthformfield

BurntimeX avatar Apr 24 '24 12:04 BurntimeX

@BurntimeX please also add an example for usage of AclFormField. Currently it's really not clear for me how to use this FormField and how to handle this data.

Hanashi avatar Jul 12 '24 12:07 Hanashi