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

    beardcoder

    02/04/2023, 11:47 AM
    i have changed the twill language config but not the app config
  • b

    beardcoder

    02/04/2023, 11:49 AM
    i have only do this 😄 https://twill.io/docs/3.x/getting-started/configuration.html#locale-configuration
  • b

    beardcoder

    02/04/2023, 11:49 AM
    Can you add a additional documentation to this section for dummys? 🙂
  • u

    UtuyutuF

    02/05/2023, 3:24 PM
    Hello, is it possible to use Twill to display a registration form data from a visitor (not user registration, just some data and a file)? I only know that we can do data registration normally in Laravel as a normal CRUD separated from Twill in the frontend, but I don't know how to display it properly using Twill in the admin panel. How can I do that? Thank you.
  • k

    kalle

    02/05/2023, 3:31 PM
    Yes, its possible. Ive had the same case for my project. You can achive that by saving form in Twill module Model. After that, you will be able to list submissions in the module index and access them. You can also append files to the form which users submit.
    u
    • 2
    • 5
  • j

    jefsev

    02/06/2023, 9:53 AM
    I will try rc3 tonight.
  • j

    jefsev

    02/06/2023, 6:39 PM
    Works 🙂
  • j

    jefsev

    02/06/2023, 8:01 PM
    Oh oh, i have nested navigations to have a archive and a list of posts but i get: Route [twill.home] not defined. (View: /var/www/html/vendor/area17/twill/views/partials/navigation/_secondary_navigation.blade.php) (View: /var/www/html/vendor/area17/twill/views/partials/navigation/_secondary_navigation.blade.php) (View: /var/www/html/vendor/area17/twill/views/partials/navigation/_secondary_navigation.blade.php)
  • j

    jefsev

    02/06/2023, 8:02 PM
    This is on twill 3.0.0-rc3
  • j

    jefsev

    02/06/2023, 8:12 PM
    This does not seem to work anymore, it does not find home
  • j

    jefsev

    02/06/2023, 8:22 PM
    Tried the new way: https://twill.io/docs/3.x/getting-started/navigation.html but get the same error
  • j

    jefsev

    02/06/2023, 8:24 PM
    Seems to only be a problem with singletons
  • i

    ifox

    02/06/2023, 8:55 PM
    @jefsev you do not need to group routes anymore to nest them in the navigation
  • i

    ifox

    02/06/2023, 8:56 PM
    that should still be supported though so we'll look into it
  • i

    ifox

    02/06/2023, 8:56 PM
    but if you can try without the route groups that should work
  • j

    jefsev

    02/07/2023, 12:57 PM
    Ah oke i will try that later today.
  • j

    jefsev

    02/07/2023, 7:17 PM
    Oke i tried it but not i get page.pages.index does not exist
  • j

    jefsev

    02/07/2023, 7:19 PM
    Route [twill.page.pages.index] not defined
  • j

    jefsev

    02/07/2023, 7:23 PM
    it's fixed by changing twill.page.pages.index to: twill.pages.index
  • j

    jefsev

    02/08/2023, 10:18 AM
    When following the twill 3 docs on navigation i get the error: Call to undefined method A17\Twill\View\Components\Navigation\NavigationLink::addAsFirstChild() phpstorm also warns that method cannot be found. I'm following https://twill.io/docs/3.x/getting-started/navigation.html the new way inside AppServiceProvider.php
  • h

    Harings Rob

    02/08/2023, 10:19 AM
    That is now automatic the method was removed. Doc's still need to be hooked up with the latest release.
  • j

    jefsev

    02/08/2023, 10:29 AM
    Overall twill 3 if very nice 🙂
  • j

    jefsev

    02/08/2023, 10:29 AM
    Quick question. How to get a formfield to the sidebar with the new formbuilder using the controller: https://twill.io/docs/3.x/crud-modules/form-builder.html#using-the-form-builder
  • i

    ifox

    02/08/2023, 10:31 AM
    https://github.com/area17/twill/blob/3.x/docs/content/1_documentation/3_modules/8_form-builder.md#using-the-form-builder
  • i

    ifox

    02/08/2023, 10:32 AM
    getSideFieldsets
  • j

    jefsev

    02/08/2023, 10:33 AM
    thx 🙂
  • j

    jefsev

    02/08/2023, 1:34 PM
    Copy code
    $image = $block->imageAsArray('image', 'desktop');
    
    <img class="w-full aspect-[2.8] object-cover" src="{{ $image['src'] }}" alt="{{ $image['alt'] }}">
    Creates an error: Cannot end a section without first starting one.
  • j

    jefsev

    02/08/2023, 1:34 PM
    in twill 3
  • j

    jefsev

    02/08/2023, 1:35 PM
    and using:
    Copy code
    {{ $block->image('image') }}
    Returns: data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
  • h

    Harings Rob

    02/08/2023, 1:36 PM
    {{ $block->image('image', 'desktop') }}
    ?
1...461462463...484Latest