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

    Harings Rob

    08/16/2022, 7:39 PM
    I will check it tomorrow, i promise
  • h

    Harings Rob

    08/17/2022, 6:19 AM
    first of all @Sami is this a new project or a upgrade?
  • s

    Sami

    08/17/2022, 6:20 AM
    new
  • h

    Harings Rob

    08/17/2022, 6:21 AM
    The I suggest not to use $indexColumns anymore. Check the https://github.com/area17/twill/blob/3.x/docs/src/crud-modules/tables.md table builder docs for more freedom.
  • h

    Harings Rob

    08/17/2022, 6:23 AM
    Internally the array you provide is converted to these objects. But I guess there's something unsupported there.
  • h

    Harings Rob

    08/17/2022, 6:25 AM
    I will still check it as we want our migration to be smooth.
  • h

    Harings Rob

    08/17/2022, 6:43 AM
    Made a pr here: https://github.com/area17/twill/pull/1780 but I still advice to use the table builder directly.
  • s

    Sami

    08/17/2022, 7:40 AM
    https://tenor.com/view/minions-despicableme-wow-gif-19917491
  • s

    Sami

    08/17/2022, 7:40 AM
    that looks amazing
  • s

    Sami

    08/17/2022, 7:47 AM
    did a quick setup and it looks like the image takes too much space, as other columns would:
  • s

    Sami

    08/17/2022, 7:48 AM
    I would like to achieve something like:
  • s

    Sami

    08/17/2022, 7:50 AM
    my setup
    Copy code
    php
    protected function getIndexTableColumns(): TableColumns
    {
        return new TableColumns([
            PublishStatus::make(),
            Image::make()
                ->field('photo')
                ->title('Photo'),
            Text::make()
                ->field('fullname')
                ->title('Name'),
        ]);
    }
  • h

    Harings Rob

    08/17/2022, 7:50 AM
    That is indeed how it should be. There might be some styling missing. I will make an issue to resolve this.
  • s

    Sami

    08/17/2022, 7:52 AM
    Ok, kewl! Happy to give you more work 😅
  • h

    Harings Rob

    08/17/2022, 7:53 AM
    Feel free to create new issues for obvious errors. Just add [3.x] at the start.
  • s

    Sami

    08/17/2022, 7:54 AM
    I just yet don't feel confident enough to know if it's an issue or if I'm doing something terribly wrong
  • h

    Harings Rob

    08/17/2022, 7:54 AM
    Do not worry about that :). Even if it is in the end not an issue, it will be publicly documented how to resolve it.
  • h

    Harings Rob

    08/17/2022, 7:54 AM
    Or we know we have to write more docs.
  • s

    Sami

    08/17/2022, 7:56 AM
    Okay, will change mindset about issues a bit then Thanks and happy coding!
  • d

    dakaalim

    08/18/2022, 2:04 AM
    How do I apply Route Grouping on Twill Capsules?
  • i

    ifox

    08/18/2022, 9:50 AM
    Hi @dakaalim I'm not sure what the issue is. You can use the same route group in multiple capsules, no?
  • u

    23r01nf1n17y

    08/19/2022, 7:01 AM
    Hi, just to make sure, since I'm not getting anything else to work: The settings section https://twill.io/docs/settings-sections/ only supports
    @formField('input')
    and no
    @formField('repeater', ['type' => 'whatever'])
    nor
    @formField('medias', [...])
    ?
  • s

    Shiftless

    08/19/2022, 7:04 AM
    is there any good source/how to about module factories? I am asking in particular because we have a PageFactory but it does not create the revisions on create.
  • s

    Shiftless

    08/19/2022, 7:20 AM
    here did ifox answer this before. https://discord.com/channels/811936425858695198/811986149064441927/1006575094820249621
    u
    h
    +2
    • 5
    • 12
  • u

    23r01nf1n17y

    08/19/2022, 7:46 AM
    here did ifox answer this before
  • h

    Harings Rob

    08/19/2022, 8:37 AM
    hey @Shiftless for more advanced settings we usually recommend using Singletons.
  • h

    Harings Rob

    08/19/2022, 8:37 AM
    We have plans to improve that for settings in 3.x, but that might be after the initial release (something like a settingsSingleTon).
  • s

    Shiftless

    08/19/2022, 8:38 AM
    yes i did so.
  • h

    Harings Rob

    08/19/2022, 8:38 AM
    I tagged the wrong person
  • h

    Harings Rob

    08/19/2022, 8:38 AM
    Was meant for @23r01nf1n17y 😄
1...375376377...484Latest