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

    jefsev

    02/08/2023, 1:40 PM
    It's in a block with: Original: 1466 × 470 Default crop: 835 × 470 Mobile crop: 470 × 470 Free crop: 1466 × 470 I want original. If i do
    Copy code
    {{ $block->image('image', 'desktop') }}
    or
    Copy code
    {{ $block->image('image', 'default') }}
    or
    Copy code
    {{ $block->image('image', 'original') }}
    i get: data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
  • j

    jefsev

    02/08/2023, 1:41 PM
    $block->imageAsArray does not work anymore? How would i get the alt text?
  • j

    jefsev

    02/08/2023, 1:41 PM
    im on twill 3.0.0-rc3
  • h

    Harings Rob

    02/08/2023, 1:42 PM
    so, you do have the image in the database? If you refresh in the backend you can see the image on the block?
  • j

    jefsev

    02/08/2023, 1:45 PM
    Yes i do, it's in the block after i refresh and also in the library
  • j

    jefsev

    02/08/2023, 1:46 PM
    Yesterday we migrated another website from 2 to twill 3 we used $block->imageAsArray() so we could also the alt text but that one always result in an error: Cannot end a section without first starting one.
  • i

    ifox

    02/08/2023, 1:56 PM
    that seems like an issue in your blade file rather than with the helper function, no?
  • j

    jefsev

    02/08/2023, 2:01 PM
    I got it
  • j

    jefsev

    02/08/2023, 2:01 PM
    my bad
  • j

    jefsev

    02/08/2023, 2:01 PM
    🫣
  • j

    jefsev

    02/08/2023, 2:04 PM
    'default' is working in imageAsArray. But how do i get original?
  • j

    jefsev

    02/08/2023, 2:04 PM
    Original: 1466 × 470
  • j

    jefsev

    02/08/2023, 2:07 PM
    flexible
  • j

    jefsev

    02/08/2023, 2:07 PM
    got it :
  • j

    jefsev

    02/08/2023, 2:07 PM
    🙂
  • i

    ifox

    02/08/2023, 2:41 PM
    @jefsev glad you figured it out. fyi those crop names are suggestions, you can set up each medias field as you wish (single crop, multiple crops, multiple ratio presets per crop)
  • i

    ifox

    02/08/2023, 2:41 PM
    eg you can keep flexible only if you wanted
  • j

    jefsev

    02/08/2023, 2:52 PM
    Yes thx
  • j

    joshyhud

    02/08/2023, 5:04 PM
    Hi all i have had some issues with a laravel build and upgrading to laravel 9 and twill.
  • j

    joshyhud

    02/08/2023, 5:04 PM
    is twill 2.x supported with laravel 9 on php 8.1?
  • i

    ifox

    02/08/2023, 5:11 PM
    hi @joshyhud yes
  • i

    ifox

    02/08/2023, 5:11 PM
    which twill version are you upgrading from?
  • j

    joshyhud

    02/08/2023, 5:12 PM
    so we had orginally twil 2.6 and then amended to twil 2.12.4 in our composer file
  • j

    joshyhud

    02/08/2023, 5:13 PM
    our issue is that in the admin area after its built we dont get anything showing in the cms at all
  • j

    joshyhud

    02/08/2023, 5:14 PM
    So our developer is getting this when access the admin area in the console and the page looks to be loading but never loads
  • i

    ifox

    02/08/2023, 5:15 PM
    did he update the twill frontend assets after composer update?
  • i

    ifox

    02/08/2023, 5:16 PM
    you said, after its built, do you rebuild twill using twill:build because you have custom components?
  • j

    joshyhud

    02/08/2023, 5:16 PM
    we ran composer install and then php artisan twill:update
  • i

    ifox

    02/08/2023, 5:18 PM
    ok. already tried optimize:clear? Now, the error message tells me this could be due to your twill.php config overriding or missing something. Try to compare with the default configuration
  • i

    ifox

    02/08/2023, 5:18 PM
    also, do you have a custom layout?
1...462463464...484Latest