amargoCactus
02/09/2022, 4:26 PMkalle
02/09/2022, 4:29 PM$indexAdditionalData = [] on ModuleController.
Resolving to views would be simple on https://github.com/area17/twill/blob/50d2a91ecc2e94351e062f61843e01e313d35a13/src/Http/Controllers/Admin/ModuleController.php#L368
```php
return View::make($view, [...$indexData, ...$this->indexAdditionalData]);
```~~kalle
02/09/2022, 4:31 PMpboivin
02/09/2022, 4:31 PMindexData() ?
https://github.com/area17/twill/blob/50d2a91ecc2e94351e062f61843e01e313d35a13/src/Http/Controllers/Admin/ModuleController.php#L954
Am I missing something obvious here?kalle
02/09/2022, 4:38 PMarray_replace_recursive which funcionality I forgot.
array_replace_recursive() replaces the values of array with the same values from all the following arrays. If a key from the first array exists in the second array, its value will be replaced by the value from the second array. If the key exists in the second array, and not the first, it will be created in the first array. If a key only exists in the first array, it will be left as is. If several arrays are passed for replacement, they will be processed in order, the later array overwriting the previous values.
Back to basics.amargoCactus
02/09/2022, 4:40 PMamargoCactus
02/09/2022, 4:40 PM@push('extra_css')
/* your custom styles here */
@endpush
?pboivin
02/09/2022, 4:45 PMextra_css from create.blade.php. Something to experiment with.
You may need to override the listing layout instead https://github.com/area17/twill/blob/2.x/views/layouts/listing.blade.phpifox
02/09/2022, 4:54 PMamargoCactus
02/09/2022, 4:57 PMamargoCactus
02/09/2022, 4:57 PM@push('extra_css')
.modal__content {
overflow: visible !important;
}
@endpushpboivin
02/09/2022, 4:57 PMamargoCactus
02/09/2022, 4:57 PMamargoCactus
02/09/2022, 4:57 PMamargoCactus
02/09/2022, 5:05 PMamargoCactus
02/09/2022, 5:05 PM@push('extra_css')
<style type="text/css">
.modal__content {
overflow: visible !important;
}
</style>
@endpushamargoCactus
02/09/2022, 5:05 PMamargoCactus
02/09/2022, 5:06 PMcreate.blade.phpamargoCactus
02/09/2022, 5:10 PMamargoCactus
02/09/2022, 5:55 PMcreate.blade.php ?kalle
02/09/2022, 6:19 PMamargoCactus
02/09/2022, 6:20 PMkalle
02/09/2022, 6:20 PMamargoCactus
02/09/2022, 6:20 PMamargoCactus
02/09/2022, 6:21 PMkalle
02/09/2022, 6:22 PMformData method
$id = $this->request->route()->parameters()['route-name']pboivin
02/09/2022, 6:23 PM'editInModal' => true in $indexOptions?amargoCactus
02/09/2022, 6:23 PMamargoCactus
02/09/2022, 6:24 PMamargoCactus
02/09/2022, 6:24 PM