aleksdish
11/24/2021, 3:23 PMaleksdish
11/24/2021, 3:23 PMaleksdish
11/24/2021, 3:27 PMpboivin
11/24/2021, 3:30 PMlink partial : https://github.com/sauron/twill-form-partials/blob/main/partials/link_field.blade.php
there's an example of _connected_fields inside of it. It's also in the Form Fields documentation.
But basically yes, you can add a repeater field when this new Submenu choice is selected.aleksdish
11/24/2021, 3:47 PM@component('twill::partials.form.utils._connected_fields', [
'fieldName' => $linkOptionName,
'fieldValues' => 'internal',
'keepAlive' => false,
'renderForBlocks' => $renderForBlocks
])
@formField('repeater', ['type' => 'video'])
@endcomponent
Inside two other connected fields components.
Still nothing shows up. Not sure if it is the right way of using this.pboivin
11/24/2021, 3:52 PMresources/views/admin/repeaters/video.blade.php ? The repeater field won't show if the template is not found.pboivin
11/24/2021, 3:55 PMlink field is already a bit complex... If you have the time, I think it could be helpful to setup a test in a fresh module. Just to make sure that you can go step by step.aleksdish
11/24/2021, 3:59 PMpboivin
11/24/2021, 4:01 PMpboivin
11/24/2021, 4:02 PMAdd item in Italian?)aleksdish
11/24/2021, 4:05 PMaleksdish
11/24/2021, 4:06 PMpboivin
11/24/2021, 4:06 PMblocks table in your DB)pboivin
11/24/2021, 4:07 PMsublink partial that doesn't have the repeater.aleksdish
11/24/2021, 4:08 PMaleksdish
11/24/2021, 4:08 PMaleksdish
11/24/2021, 4:11 PMaleksdish
11/24/2021, 4:11 PMJonathanF
11/24/2021, 6:15 PMaleksdish
11/25/2021, 4:51 PMifox
11/25/2021, 5:06 PMaleksdish
11/25/2021, 5:09 PMifox
11/25/2021, 5:10 PMifox
11/25/2021, 5:10 PMaleksdish
11/25/2021, 5:11 PMaleksdish
11/25/2021, 5:12 PMaleksdish
11/25/2021, 5:12 PMifox
11/25/2021, 5:14 PMaleksdish
11/25/2021, 5:15 PMaleksdish
11/25/2021, 5:15 PM