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

    Harings Rob

    01/16/2023, 11:51 AM
    yes, but then the "vendor frames" is what I am interested in 🙂
  • a

    Abdullahi

    01/16/2023, 11:53 AM
    Looks like i figured it out, my repository was using HandleBlocks. Sorry about that.
  • h

    Harings Rob

    01/16/2023, 11:53 AM
    perfect! Don't worry about it.
  • o

    Olivier

    01/16/2023, 3:31 PM
    In Twill 2, I'm adding an import function. How would I add a revision when updating a row. Is there a documentation page on this subject? The model has translations as well.
  • i

    ifox

    01/16/2023, 3:40 PM
    @Olivier if you use the module repository
    update
    method, it will create a revision for you. You will need to send an array of locale => value for translated fields.
  • o

    Olivier

    01/16/2023, 3:41 PM
    As easy as that, uh. Too good, al'right, I'll experiment with that, thanks !
  • a

    Abdullahi

    01/16/2023, 4:58 PM
    is there something I missing, I am trying to edit a particular data. When I click update I get this error "[2023-01-16 11:58:01] local.ERROR: User {"userId":1,"exception":"[object] (A17\\Twill\\Exceptions\\NoCapsuleFoundException(code: 0): User at /Users/abdullahi/dashboard/vendor/area17/twill/src/TwillCapsules.php:74) [stacktrace]"
  • m

    Mustafa_Dev

    01/16/2023, 7:17 PM
    Any eta for v3 docs to be live? it's so hard to view it on GitHub. I'm facing issues regrading model configuration, twill newbie. 😔
  • k

    kalle

    01/16/2023, 7:38 PM
    https://twill.io/docs/3.x/
  • m

    Mustafa_Dev

    01/16/2023, 7:42 PM
    @kalle This is not updated at all. I checked this before
  • i

    ifox

    01/16/2023, 7:45 PM
    Hi @Mustafa_Dev we just did RC2, hoping to catch any last bugs and working on announcements and content updates. The new docs are here: https://github.com/area17/twill/tree/3.x/docs. please let us know what you're looking for.
  • i

    ifox

    01/16/2023, 7:58 PM
    oh you were talking about the docs build being live. Very soon, but you can already build them if you want to.
  • b

    BA7YA

    01/17/2023, 10:18 AM
    Hello people! Do we have any options to use connected fields in CREATE modal window? I have tried to use
    @component('twill::partials.form.utils._connected_fields',
    , but it's not working
  • i

    ifox

    01/17/2023, 10:22 AM
    @BA7YA that's not supported. I'd suggest using the
    skipCreateModal
    indexOption to directly create from the full form
  • b

    BA7YA

    01/17/2023, 10:33 AM
    Im just trying to make this an optional https://twill.io/docs/guides/adding-fields-to-the-create-modal.html#customize-with-more-control . I mean add some checkbox and if I need to put in SLUG field the same value as in Title => i just tick the checkbox and it will put that value, if not then I can put whatever I want
  • k

    kalle

    01/17/2023, 10:39 AM
    You can make that on the backend, but on the frontend its not currently possible. You would need to have both components visible (checkbox & tag input).
  • b

    BA7YA

    01/17/2023, 10:39 AM
    Thank you! Will try to find work around , and then will share it
  • e

    Erwin

    01/17/2023, 6:07 PM
    Hey i have a block editor, and a repeater inside of a block, i don't really understand how i would setup a preview for this repeater, cause i'ts not a block. When i create vac-archive-item.blade.php in /blocks it doesnt load the block at all in the preview, but it does on the frontend...
  • e

    Erwin

    01/17/2023, 6:41 PM
    Note: it does show the repeater items but it also shows the error
  • i

    ifox

    01/17/2023, 6:52 PM
    hi @Erwin it seems like you're rendering the repeater items in your parent block, so what you need to do is disable
    twill.block_editor.block_preview_render_childs
  • e

    Erwin

    01/17/2023, 7:00 PM
    Ah perfect, thanks a lot!
  • j

    jefsev

    01/17/2023, 7:25 PM
    Hi ifox 🙂 Is there a way to add png preview image to the content editor. I would like to make small screen shots of the XD design and add them instead of the icons, this would greatly improve the ux when there are alot of blocks.
  • i

    ifox

    01/17/2023, 7:42 PM
    Hi @jefsev at the moment only svg icons are supported, but we could look into adding support for an image url instead of an icon name
  • j

    jefsev

    01/17/2023, 7:43 PM
    Oke, yeah that would be great. Then the content editor becomes really user friendly 🙂
  • j

    jefsev

    01/17/2023, 7:43 PM
    thx
  • a

    Abdullahi

    01/18/2023, 9:49 AM
    Hello, not sure i have seen away to disable softdelete on a model in twill. Is there a way out?
  • k

    kalle

    01/18/2023, 9:51 AM
    You need it on the index view?
  • a

    Abdullahi

    01/18/2023, 10:44 AM
    I want to remove it. Each time i click on a module, I get column undefined deleted_at. I think which is caused by the softdelete on the model
  • k

    kalle

    01/18/2023, 10:45 AM
    Sorry I meant, you want to have it removed on the index view? On the controller, you have these options which can help you to disable soft delete.
    Copy code
    php
        protected $indexOptions = [
            'restore' => false,
            'bulkRestore' => false,
            'forceDelete' => true,
            'bulkForceDelete' => true,
            'delete' => false,
            'bulkDelete' => false,
        ];
  • a

    Abdullahi

    01/18/2023, 10:54 AM
    Hmm no, I want to totally remove it, my existing migration does not have deleted_at on it and I dont want to add it.
1...448449450...484Latest