user
09/16/2021, 2:54 PMuser
09/16/2021, 2:54 PMpboivin
09/16/2021, 2:59 PMSami
09/16/2021, 2:59 PMpboivin
09/16/2021, 3:00 PMpboivin
09/16/2021, 3:01 PMcomposer require cwsdigital/twill-metadataSami
09/16/2021, 3:01 PMSami
09/16/2021, 3:02 PMSami
09/16/2021, 3:03 PMpboivin
09/16/2021, 3:03 PMifox
09/16/2021, 3:04 PMuser
09/16/2021, 3:06 PMSami
09/16/2021, 3:07 PMkeywords but maybe it is just not named keywords or I was clinically blind when doing SEO on last projectdpadular
09/16/2021, 4:16 PMfiles formField, ideally in a repeater, and i would like to associate a title and description with each file. does anyone have an example of a similar workflow?
would i need to create a Downloads module that uses hasFiles and use a repeater to configure them that way?pboivin
09/16/2021, 4:21 PMDownloads and DownloadItem.
Your downloads/form.blade.php would have the repeater field and your DownloadItem would have the HasFiles behavior.dpadular
09/16/2021, 4:22 PMDownloads with an existing Products module -- would you recommend the same thing, @User ?pboivin
09/16/2021, 4:23 PMdpadular
09/16/2021, 4:38 PMfiles field, but that doesn't let me associate a title or description to each file
@formFieldset(['id' => 'downloads', 'title' => 'Downloads'])
@formField('files', [
'name' => 'Download',
'label' => 'Add a Download',
'note' => 'Add a downloadable file to this Product.',
'max' => 20
])
@endformFieldsetpboivin
09/16/2021, 4:48 PMdownloads module actually. You can add your download-item repeater directly on your products/form.blade.phpdpadular
09/16/2021, 5:04 PMDownloadItem module with HasFiles, and then add that download-item repeater? awesomedpadular
09/16/2021, 5:05 PMchrispymm
09/16/2021, 7:10 PMLuís Novais
09/16/2021, 9:34 PMpboivin
09/16/2021, 9:44 PMLuís Novais
09/16/2021, 9:45 PMLuís Novais
09/16/2021, 9:51 PMpboivin
09/16/2021, 10:07 PMmedias fields you need to set your crop config in config/twill.phppboivin
09/16/2021, 10:07 PMmedias fields inside blockspboivin
09/16/2021, 10:08 PM'block_editor' => [
'crops' => [
'cover' => [
'default' => [
['name' => 'free', 'ratio' => 0],
],
],
],
],pboivin
09/16/2021, 10:09 PM@formField('medias', ['name' => 'cover', 'label' => 'Cover'])