https://twill.io logo
Join Discord
Powered by
# ❓questions
  • d

    dedli

    06/22/2022, 5:35 PM
    ok, thanks )
  • d

    dedli

    06/22/2022, 5:38 PM
    And one more question, is it possible to set two same browsers to one resourse? I have one module authors and I want to connect this module two times on the same resource as authors and subauthors browser fields
  • m

    marquin

    06/22/2022, 5:44 PM
    Good afternoon guys. I'm trying to add this bucket. Can someone help me?
  • k

    kalle

    06/22/2022, 6:54 PM
    Hello, have you checked starting documentation https://twill.io/docs/featuring-content/ ?
  • i

    ifox

    06/22/2022, 6:59 PM
    sure, naming your 2 browsers differently will work as long as you specify which model it relates to in your module repository that is saving/retrieving them
  • d

    dedli

    06/22/2022, 7:53 PM
    thanks )
  • d

    dedli

    06/22/2022, 8:00 PM
    When I use Json Repeater can I use medias? Medias does not save. Should I add something to twill config or to model?
    i
    • 2
    • 3
  • u

    user

    06/22/2022, 8:25 PM
    How do I add a new language and start translating twills backend, is there an artisan command I can use to publish language files from the vendor package?
  • u

    user

    06/22/2022, 8:27 PM
    I see there are lots of languages already added when I browse the package source under 'lang', but adding them to config does not seem to add the option to select those languages from the users profile when I am logged in to the backend
    u
    i
    • 2
    • 23
  • u

    23r01nf1n17y

    06/22/2022, 8:53 PM
    Can I limit the amount of blocks a user can add? I looked into
    vendor/area17/twill/views/partials/form/_block_editor.blade.php
    but did not find a
    $max
    value as in
    vendor/area17/twill/views/partials/form/_repeater.blade.php
    . I'd also take a hacky solution 🙂 Tried my best already.
    i
    • 2
    • 6
  • u

    23r01nf1n17y

    06/22/2022, 8:53 PM
    I see there are lots of languages
  • i

    ifox

    06/22/2022, 9:04 PM
    JSON repeaters medias support
  • i

    ifox

    06/22/2022, 9:10 PM
    max blocks
  • d

    dedli

    06/23/2022, 6:41 AM
    Hi guys ) I have problem with svg preview in medias https://monosnap.com/file/8Sg8Gj05j3gBsLgaqr3qAtNZ5FzpTo Same time png files upload to another path and everything is ok: https://monosnap.com/file/sxoykpZEqRKy4fli22VF1dzlx1ng2l I add to twill config file``` 'glide' => [ 'original_media_for_extensions' => ['svg'], 'default_params' => [ 'fm' => 'png', 'q' => '80', 'fit' => 'max', ], ],
    Copy code
    I try to run ```php artisan storage:link
    but result the same
  • i

    ifox

    06/23/2022, 7:48 AM
    they both upload to the same path, what is happening is your configuration is telling SVG not to use Glide, so it returns a standard storage url. If these don't work, you have a Laravel storage symlink issue
  • d

    dedli

    06/23/2022, 8:53 AM
    Sorry, I don't understand what should I do. I should to add something to config?
  • m

    mateoD

    06/23/2022, 9:03 AM
    hello everyone, im using glide and want to crop my image for each screen size but my image reurns allways as default crop can you help me to slove that
    i
    • 2
    • 26
  • d

    dedli

    06/23/2022, 9:54 AM
    When I upload svg locally I get path to image without port, so if I manually add port to image path I get image. On the server it return path which i try to get my svg and get error https://monosnap.com/file/sxDc9ZCLo12CkejdIJ0XlxoKRSm8VK
  • d

    dedli

    06/23/2022, 9:57 AM
    my local env file:
    Copy code
    GLIDE_BASE_URL='localhost:8000
    'MEDIA_LIBRARY_CASCADE_DELETE='true'
    MEDIA_LIBRARY_ENDPOINT_TYPE='local'
    MEDIA_LIBRARY_IMAGE_SERVICE='A17\Twill\Services\MediaLibrary\Glide
    'MEDIA_LIBRARY_LOCAL_PATH='uploads
    'FILE_LIBRARY_CASCADE_DELETE='true
    'FILE_LIBRARY_ENDPOINT_TYPE='local
    'FILE_LIBRARY_IMAGE_SERVICE='A17\Twill\Services\MediaLibrary\Glide
    'FILE_LIBRARY_LOCAL_PATH='uploads'
  • i

    ifox

    06/23/2022, 10:05 AM
    The default local disk doesn't use the
    url
    option which you would need to work with a port in the url https://github.com/area17/twill/blob/5d3f7f15f65f05436f9eb542d11ea01b9ba3fd77/config/disks.php#L5
  • i

    ifox

    06/23/2022, 10:05 AM
    so you can create your own disk in your
    filesystems.php
    config and use it in
    twill.media_library.disk
  • i

    ifox

    06/23/2022, 10:06 AM
    glide crops
  • c

    cooz_master

    06/23/2022, 10:07 AM
    @formField('checkbox', [ 'name' => 'is_header', 'label' => 'Use in Navbar', 'translated' => true, 'default' => true ]) I am using the checkbox. I have set default value as true. Even though i change the value it doesnt change and its not updated in the database as well.. Am i missing anything here?
  • i

    ifox

    06/23/2022, 10:09 AM
    what do you mean by it doesn't change? On page load or when interacting with the checkbox?
  • c

    cooz_master

    06/23/2022, 10:10 AM
    value change can be seen here. But it doesnt change in the payload. And also the name in element is is_header[4e5646].
  • c

    cooz_master

    06/23/2022, 10:11 AM
    Do i need to alert something in model or any manual config to be done?
  • k

    kristi

    06/23/2022, 10:12 AM
    hello, is any way to getRelated with translations?
  • c

    cooz_master

    06/23/2022, 10:12 AM
    and also translated true flag doesnt work. It shows the same checkbox for all translations
  • i

    ifox

    06/23/2022, 10:12 AM
    what context is this checkbox in? top level form, block, repeater?
  • i

    ifox

    06/23/2022, 10:13 AM
    translated is not supported on checkbox
1...348349350...484Latest