Closed Phiosss closed 1 year ago
hey @Phiosss this bug has been fixed in https://github.com/area17/twill/pull/2092
Hi @haringsrob Thanks for fixing the translatable settings issues. But the media fields still cannot be saved. Here is more info fyr config->twill.php
'block_editor' => [
'crops' => [
'site_logo' => [
'default' => [
[
'name' => 'default',
'ratio' => 16 / 9,
],
],
'mobile' => [
[
'name' => 'mobile',
'ratio' => 1,
],
],
'flexible' => [
[
'name' => 'free',
'ratio' => 0,
],
[
'name' => 'landscape',
'ratio' => 16 / 9,
],
[
'name' => 'portrait',
'ratio' => 3 / 5,
],
],
],
],
],
The mediables table have the record for the setting block. But the site logo fields is empty
@Phiosss did you ever figure this out, i'm trying to store media in settings as well, field loads fine but nothing saves.
@devon2018 I added :translated="true"
to the media field
Description
Screen Capture:
Button for change locale is missing, Cannot save media fields
Steps to reproduce
AppServiceProvider boot method:
Create copyright.blade.php under resources->views->settings->site-settings:
Expected result
Translated fields similar to normal module translated fields. Meida will be saved.
Actual result
Language Changing button is missing and Media cannot be saved.
Versions
Twill: 3.x-dev 7badd01
Laravel: v.9.40.1
php: 8.1.0
Database: MySQL