kalle
03/03/2022, 4:44 PMa17-vselect?rescarcega
03/03/2022, 4:49 PMkalle
03/03/2022, 4:59 PMvselect https://github.com/area17/twill/blob/8b016ae8e30232cc92c767891192abd3801b1d1d/views/partials/form/_select.blade.php#L71-L97hazelbag
03/04/2022, 10:43 AMHarings Rob
03/04/2022, 10:52 AMifox
03/04/2022, 10:54 AMhazelbag
03/04/2022, 10:55 AMifox
03/04/2022, 10:59 AMhazelbag
03/04/2022, 11:00 AMhazelbag
03/04/2022, 2:29 PMkalle
03/04/2022, 2:31 PMkalle
03/04/2022, 2:32 PMfile_role is the name of input in your form.hazelbag
03/04/2022, 2:34 PM@formField('files', [
'name' => 'single_file',
'label' => 'Podcast File',
'note' => 'Ensure you load only one audio clip'
])
So would the file_role just be single_file or file?kalle
03/04/2022, 2:37 PMfile_role is just an example. If you have many pictures in one form field you will still use same role single_file, no matter how much files you accept in one form field.
If you have multiple form fields with files, you need to register them all in the $filesParams like ['single_file', 'other_field', ...]
Example
php
@formField('files', [
'name' => 'single_file',
'label' => 'Podcast File',
'note' => 'Ensure you load only one audio clip'
])
@formField('files', [
'name' => 'other_field',
'label' => 'Podcast File',
'note' => 'Ensure you load only one audio clip'
])hazelbag
03/04/2022, 2:39 PMhazelbag
03/04/2022, 2:41 PMfiles and the podcast table as there is no reference to either there?kalle
03/04/2022, 2:43 PMfileables table which connects records from your module to the specific file.
Eghazelbag
03/04/2022, 2:44 PMahinkle
03/04/2022, 2:50 PMHarings Rob
03/04/2022, 2:54 PMahinkle
03/04/2022, 2:56 PMifox
03/04/2022, 2:57 PMahinkle
03/04/2022, 2:58 PMUtuyutuF
03/05/2022, 5:57 AMHarings Rob
03/05/2022, 6:45 AMUtuyutuF
03/05/2022, 7:13 AMSathish
03/05/2022, 11:47 AMSathish
03/05/2022, 11:47 AMSathish
03/05/2022, 11:48 AM