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

    alitak

    08/12/2022, 7:34 AM
    that would be really nice, thanks
  • a

    alitak

    08/12/2022, 7:34 AM
    i have some troubles with the secondary navigation, honestly, i cannot create any links to the black bar
  • k

    kalle

    08/12/2022, 7:35 AM
    Mind sharing with us your navigation configuration and route setup?
  • a

    alitak

    08/12/2022, 7:37 AM
    there will be documents, which will be groupped by categories
  • a

    alitak

    08/12/2022, 7:38 AM
    so i need a categories and a documents menu item, but it would be nice, to group the to a documents main menu item
  • k

    kalle

    08/12/2022, 7:40 AM
    Per see I can see that you have wrong configuration atm
  • k

    kalle

    08/12/2022, 7:40 AM
    Have you checked this docs https://twill.io/docs/getting-started/navigation.html#navigation ?
  • a

    alitak

    08/12/2022, 7:43 AM
    yes. but i could not configure properly, i tried some other configurations too
  • k

    kalle

    08/12/2022, 7:44 AM
    Can you send me this code in the DM, Ill try to fix it up. Resolved.
  • b

    BA7YA

    08/12/2022, 11:51 AM
    Hi Guys. Any solution for this one? My custom MediaField component exists in vendor../../../components/customs but not used by twill
  • k

    kalle

    08/12/2022, 11:56 AM
    I really dont have an idea. cc @pboivin
  • b

    BA7YA

    08/12/2022, 12:51 PM
    Very strange think, that I put 2 console logs in both of MediaFields(Original, custom) . In console I see "Hello, im native" - goes from original MediaField component in vendor (screenshot 1). But if I will click in console on file from where it went, I see my custom component with 'Hello, im custom' (screenshot 2)
  • b

    BA7YA

    08/12/2022, 1:11 PM
    And all components such TitleEditor can be overwrited and working just fine, except fields component like select, checkbox, mediafield
  • b

    BA7YA

    08/12/2022, 1:27 PM
    And it's starts working only if I will overwrite A17config.js file and add custom folder in the path. But it’s not the fix of my problem , cause I can’t save it and use after composer install
  • b

    BA7YA

    08/12/2022, 2:15 PM
    @Harings Rob Maybe you could suggest some solution for it?)
  • i

    ifox

    08/12/2022, 2:20 PM
    We'll need some time to investigate @BA7YA can you please report an issue on GitHub for this?
  • b

    BA7YA

    08/12/2022, 2:59 PM
    @ifox Sure. Will do that 👍
  • s

    Sami

    08/14/2022, 12:28 PM
    Hello, with Twill 3 alpha - how to add Thumb column in
    $indexColumns
    ? Currently I have this:
    Copy code
    php
    'photo' => [
        'thumb' => true,
    
        'variant' => [
            'role' => 'photo',
            'crop' => 'original',
        ],
    ],
    but it doesn't seem to do anything. I also tried
    Copy code
    php
    'image' => [
        'thumb' => true, // image column
        'variant' => [
            'role' => 'photo',
            'crop' => 'original',
        ],
    ],
    ↑ this throws and exception
    Too few arguments to function App\Models\Collegues::image(), 0 passed
    ...
    $mediasParams
    of Collegues module is set to:
    Copy code
    php
    'photo' => [
        'original' => [
            [
                'name' => 'original',
                'ratio' => null,
            ],
        ],
    ]
  • h

    Harings Rob

    08/14/2022, 5:34 PM
    Hey @Sami I will check this on Tuesday.
  • d

    dakaalim

    08/15/2022, 4:37 AM
    Is there a way to set a maximum number for a
    block_editor
    field? i.e.
    @twillBlockMax('10') // Optional
  • h

    Harings Rob

    08/15/2022, 5:57 AM
    Hey @dakaalim not currently afaik, but you can add your request to https://github.com/area17/twill/issues/1688
  • d

    dakaalim

    08/15/2022, 9:58 AM
    Thankyou Dufji, I would if I'm a sponsor haha, but I'll just use twill how it's meant to be used
  • d

    delta107

    08/16/2022, 6:48 AM
    Hello! Do you have any guideline to using Twill with CDN like AWS Cloudfront?
  • i

    ifox

    08/16/2022, 6:52 AM
    hi @delta107 do you mean as far as invalidating it when changes happen in Twill? I can respond to that, for the rest, it is more of a Laravel question than Twill really.
  • d

    delta107

    08/16/2022, 6:53 AM
    Yeah about that indeed! That would help
  • i

    ifox

    08/16/2022, 6:54 AM
    for invalidations, the simple approach is to listen to Twill events from your event service provider and trigger CloudFront invalidations from there. Another approach would be to use our package EdgeFlush
  • i

    ifox

    08/16/2022, 6:54 AM
    https://github.com/area17/edge-flush
  • d

    delta107

    08/16/2022, 7:42 AM
    https://twill.io/docs/crud-modules/form-requests.html#validating-repeater-fields
  • d

    delta107

    08/16/2022, 7:43 AM
    Could you please elaborate on the behavior above. Does this include messages automatically besides the "Your submission could not be validated, please fix and retry"
  • h

    Harings Rob

    08/16/2022, 8:04 AM
    Hey @delta107 what do you mean behavior above?
1...373374375...484Latest