`Sebastlan
09/30/2021, 8:34 PMpboivin
09/30/2021, 8:36 PM`Sebastlan
09/30/2021, 8:37 PM`Sebastlan
09/30/2021, 8:37 PM`Sebastlan
09/30/2021, 8:38 PM`Sebastlan
09/30/2021, 8:38 PMpboivin
09/30/2021, 8:40 PM`Sebastlan
09/30/2021, 8:42 PMpboivin
09/30/2021, 8:42 PM`Sebastlan
09/30/2021, 8:45 PMpboivin
09/30/2021, 8:46 PM`Sebastlan
09/30/2021, 8:47 PM@section('sideFieldsets')
<a17-fieldset id="preview-img" title="thumb" :open="true">
@formField('medias', [
'name' => 'cover',
'label' => ''
])
</a17-fieldset>
@endsection`Sebastlan
09/30/2021, 8:47 PMpboivin
09/30/2021, 8:48 PMform.blade.php :
@push('extra_css')
<style>
.wrapper .publisher {
position: initial !important;
}
</style>
@endpush`Sebastlan
09/30/2021, 8:48 PMpboivin
09/30/2021, 8:48 PM`Sebastlan
09/30/2021, 8:49 PM`Sebastlan
09/30/2021, 8:49 PMpboivin
09/30/2021, 8:50 PM`Sebastlan
09/30/2021, 8:50 PMpboivin
09/30/2021, 8:54 PMform layoutpboivin
09/30/2021, 8:54 PMresources/views/admin/layouts/form.blade.php :
@extends('twill::layouts.form')
@push('extra_css')
<style>
.wrapper .publisher {
position: initial !important;
}
</style>
@endpushpboivin
09/30/2021, 8:55 PMform.blade.php :pboivin
09/30/2021, 8:55 PM@extends('admin.layouts.form')Luís Novais
10/01/2021, 12:00 AMMedvedOurs
10/01/2021, 6:16 AMphp artisan vendor:publish --provider="A17\Twill\TwillServiceProvider" --tag="views" and php artisan view:cache when the container starts up. Now I run into View [partials.form._] not found. (View: /var/www/html/resources/views/vendor/twill/partials/form/utils/_blocks_templates.blade.php) - so same error, but only when displaying a form that has blocks. Here's a very simple example of a form that fails : @extends('twill::layouts.form')
@section('contentFields')
@formField('input', [
'name' => 'description',
'label' => 'Description',
'type' => 'text'
])
@formField('block_editor', [
'carousel_custom',
'image',
'image_full_width',
'text',
'video',
'quote_custom',
'list',
'code',
])
@stop
In terms of difference of env, we have something live build on an apache image, that works fine in all aspect. For performance we wanted to move to nginx and php-fpm, based on 7.4-fpm-alpine, so I think it might be related - because it is the only difference. The buiild itself is pretty straightforward - pull the image, install librairies, copy repository, manage files permission access (could something happen here?), switch user, run artisan commands to cache views/config/routes, start nginx and fpm.
I think now I'm going to try to good old 'twill:blocks' command (I'm running 2.1.1 so it might be worth upgrading to 2.5 to see if things have changed as well)ifox
10/01/2021, 6:24 AMifox
10/01/2021, 6:25 AMtwill.block_editor config?MedvedOurs
10/01/2021, 6:27 AMdelta107
10/01/2021, 7:02 AM