https://twill.io logo
Join DiscordCommunities
Powered by
# ❓questions
  • i

    ifox

    02/24/2023, 4:49 PM
    The only difference is the location of the files, functionality is exactly the same
  • a

    AntonyPL

    02/24/2023, 8:27 PM
    @ifox and when twill 2.x will be support with Laravel 10?
  • i

    ifox

    02/24/2023, 9:24 PM
    should be good next week. You can already try with the open PR.
  • a

    AntonyPL

    02/25/2023, 8:11 AM
    Sounds good 🙂
  • a

    Archibald

    02/27/2023, 12:20 PM
    Is there a way in the Block Editor Form Field to reference a block in a subdirectory of the blocks directory Example: block location: view/twill/blocks/movie/title.blade.php
    Copy code
    php
    BlockEditor::make()->blocks(['movie.title'])
  • s

    savchuk.ivan

    02/27/2023, 4:12 PM
    Good evening. Guys, there is a WYSIWYG field. I can fill this field with any text. If I erase the text, what remains is Is it possible to somehow make a check that if there is no text, then delete these tags ?!
  • i

    ifox

    02/27/2023, 4:22 PM
    @savchuk.ivan I'd suggest using tiptap instead of quill using the type option. It is becoming the default in Twill 3.
  • c

    ckmirafss

    03/02/2023, 6:57 AM
    Hi, I've uploaded a PDF file on the CMS. How can I pull it on the FE side?
  • k

    kalle

    03/02/2023, 8:28 AM
    Copy code
    php
    $model->file('role', 'locale');
    https://github.com/area17/twill/blob/3.x/src/Models/Behaviors/HasFiles.php#L42-L62
  • c

    ckmirafss

    03/02/2023, 8:29 AM
    Thanks mate!
  • c

    ckmirafss

    03/02/2023, 9:11 AM
    When I clicked the file on the CMS, it didn't download. It shows this error.
  • i

    ifox

    03/02/2023, 9:41 AM
    Which driver are you using the the file library storage and rendering @ckmirafss? If local you may need to use artisan storage:link
  • c

    ckmirafss

    03/02/2023, 11:10 AM
    @ifox here. I was also done running the storage:link
  • i

    ifox

    03/02/2023, 11:11 AM
    what is the url looking like for that link when you inspect it?
  • c

    ckmirafss

    03/02/2023, 11:11 AM
    The file is also here "storage\app\public\uploads\9ad93320-deb8-43fa-b11d-e8017c38c913"
  • c

    ckmirafss

    03/02/2023, 11:13 AM
    i encountered this on my local and production.
  • i

    ifox

    03/02/2023, 11:16 AM
    if you have a correct symlink of storage/app/public in your public/storage folder, there's no reason for this url to not work
  • c

    ckmirafss

    03/02/2023, 11:17 AM
    Oops sorry, I've pasted the other one, which is in prod. here's on my local
  • i

    ifox

    03/02/2023, 11:24 AM
    do you see a storage folder in your public directory?
  • c

    ckmirafss

    03/02/2023, 11:26 AM
    yeap its empty
  • c

    ckmirafss

    03/02/2023, 11:26 AM
    The files are uploaded in storage\app\public\uploads
  • i

    ifox

    03/02/2023, 11:28 AM
    that's normal and the storage:link command is supposed to create a symbolic link in
    public/storage
    pointing to
    storage/app/public
    . So again, if that was setup correctly, you would see the uploads folder when opening the storage folder under public
  • c

    ckmirafss

    03/02/2023, 11:32 AM
    Yeap, I can see the files. But just wondering when I clicked it, it returned 404.
  • c

    ckmirafss

    03/02/2023, 11:44 AM
    Fixed. I just deleted all the storage folder then connect again with storage:link.
  • c

    ckmirafss

    03/02/2023, 12:07 PM
    Dang, not sure why is it not working on production. LOL
  • o

    Olivier

    03/02/2023, 5:05 PM
    Question for Twill 2.x: I tried using a Browser field in the settings section, but it is not saving. Is is possible to use a browser field as a setting?
  • o

    Olivier

    03/02/2023, 5:46 PM
    Never mind, I found the related issue in GitHub.
  • k

    Koili

    03/03/2023, 10:50 AM
    Hello, id like to extend the MediaLibrary Grid vue component to include filenames, I know extending/overriding the twig based layouts is possible by just placing the new templates in the appropriate
    views
    subdirectory. Is this possible for vue components aswell? Or do i need to publish the whole frontend vue project and edit/rebuild it that way? Tried finding info about this in the docs, but didnt see anything except the part about building new custom form vue components. (Twig 2)
    i
    • 2
    • 14
  • k

    Koili

    03/03/2023, 11:03 AM
    i found this in the vue app mediaLibrary state, but not sure how to access/configure those values
  • s

    savchuk.ivan

    03/05/2023, 3:26 PM
    Good evening guys. Prompt with a question please. I have a medias field where I select multiple images. The button is displayed as Attach images. How can I add translation to this button?
1...470471472...484Latest