IRC logs for #farmOS, 2023-06-02 (GMT)

2023-06-01
2023-06-03
TimeNickMessage
[07:50:36]* UzelJames[m] has joined #farmos
[07:50:37]<UzelJames[m]>Hi guys
[07:52:39]<UzelJames[m]>can anyone show me how to create forms on farmos?
[07:52:50]<mstenta[m]>Hi Uzel James
[07:53:13]<mstenta[m]>This might be a good place to start: https://farmos.org/development/module/quick/
[07:53:17]<mstenta[m]>And if you are new to module development, start here: https://farmos.org/development/module/
[07:53:44]<UzelJames[m]>Im grateful
[07:53:52]<mstenta[m]>farmOS is built on Drupal, and farmOS "Quick Forms" are basically a thin layer on top of Drupal's Form API - so you can refer to Drupal documentation for a LOT more details on what's possible
[07:54:00]<mstenta[m]>https://www.drupal.org/docs/drupal-apis/form-api
[07:54:18]<UzelJames[m]>Alright
[07:54:24]<mstenta[m]>A great place to start is by looking at example code in the Drupal Examples project: https://www.drupal.org/project/examples/
[07:54:51]<mstenta[m]>If you look at the code in that repo, you will see that it contains a number of Drupal modules, each demonstrating different core Drupal things.
[07:55:21]<mstenta[m]>This is the Form API examples module specifically: https://git.drupalcode.org/project/examples/-/tree/4.0.x/modules/form_ap...
[07:56:08]<UzelJames[m]>okay thanks
[07:57:07]<mstenta[m]>All of that assumes that you want to build forms IN farmOS (in PHP)
[07:57:26]<mstenta[m]>Alternatively, you could build a form OUTSIDE of farmOS, which pushes data in via the API
[07:57:34]<mstenta[m]>In that case, you can build it in any language you feel comfortable with
[07:57:42]<mstenta[m]>Depends on what you are hoping to build
[08:11:17]<UzelJames[m]>I want to build a farm traceability app
[08:12:37]<mstenta[m]>Cool!
[08:58:12]<UzelJames[m]>ACTION uploaded an image: (10KiB) < https://libera.ems.host/_matrix/media/v3/download/matrix.org/DdKQRXbyOpA... >
[08:58:32]<UzelJames[m]>has anyone ever encountered this issue when running on docker ?
[08:58:47]<UzelJames[m]>if yes, how did he / she fix it?
[08:59:18]<mstenta[m]>Are you using the official Docker images and suggested Docker Compose? Or are you using your own custom configurations?
[08:59:50]<UzelJames[m]>official docker image for development
[08:59:50]<mstenta[m]>Was this set up using the development environment instructions? https://farmos.org/development/environment/
[08:59:56]<UzelJames[m]>yes
[09:00:13]<mstenta[m]>Hmm I'm not sure then. I've never encountered this.
[09:00:20]<mstenta[m]>What operating system?
[09:00:27]<UzelJames[m]>windows 11
[09:00:32]<mstenta[m]>Ah
[09:00:43]<mstenta[m]>Probably a windows vs linux file permissions issue?
[09:00:54]<mstenta[m]>I am unfamiliar with Windows, so I'm afraid I can't be much help
[09:01:08]<mstenta[m]>It says that it can't read the .htaccess file
[09:01:08]<UzelJames[m]>Will just switch to linux soon
[09:01:15]<UzelJames[m]>windows has issues
[09:01:22]<UzelJames[m]>mstenta[m]: yes