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

    ifox

    06/29/2022, 3:04 PM
    Hi @Gewoon Henne yes you can put 1 or multiple repeater fields of different types in a block to achieve what you're looking for
  • g

    Gewoon Henne

    06/29/2022, 3:07 PM
    Thx for your answer ifox. Can I call this in this line: @formField('repeater', ['type' => 'full_width_image_item']) and separate the different type with a comma?
  • i

    ifox

    06/29/2022, 3:57 PM
    oh no sorry, there's no multi type repeater
  • i

    ifox

    06/29/2022, 3:58 PM
    you can put multiple formField repeater in a single block is what I meant
  • i

    ifox

    06/29/2022, 3:58 PM
    and you can use conditional fields if you need a repeater that can take many forms if you will
  • i

    ifox

    06/29/2022, 3:58 PM
    we're working on nested blocks for Twill 3 though
  • g

    Gewoon Henne

    06/29/2022, 4:01 PM
    Oke thx. Nested blocks will be helpful. Then I'll have to be patient for Twill 3 😉
  • i

    ifox

    06/29/2022, 4:01 PM
    you can already play with it with 3.x-dev
  • g

    Gewoon Henne

    06/29/2022, 4:03 PM
    Oh nice! Can I find it on GitHub?
  • i

    ifox

    06/29/2022, 4:48 PM
    https://github.com/area17/twill/tree/3.x https://github.com/area17/twill/pull/1481
  • a

    amargoCactus

    06/29/2022, 5:34 PM
    👀
  • a

    amargoCactus

    06/30/2022, 2:31 AM
    im having this error because
    name
    column instead of
    title
  • a

    amargoCactus

    06/30/2022, 2:32 AM
    i already did
    protected $titleColumnKey = 'name';
  • a

    amargoCactus

    06/30/2022, 2:32 AM
    do i have to define
    title
    field in my model and db table anyways?
  • h

    Harings Rob

    06/30/2022, 6:27 AM
    No @amargoCactus but I think you need to set 'name' to be your slug somewhere.
  • h

    Harings Rob

    06/30/2022, 6:28 AM
    Copy code
    public $slugAttributes = [
            'name',
        ];
    in your model
  • a

    amargoCactus

    06/30/2022, 6:29 AM
    Thanks!!
  • h

    Harings Rob

    06/30/2022, 6:29 AM
    If you have specific questions (or bugs) you can also ask in #989876822323908608
  • g

    Gewoon Henne

    06/30/2022, 9:05 AM
    Nice 👍 thx ifox.
  • b

    BA7YA

    06/30/2022, 9:14 AM
    Hi guys. Does Twill have the scheduled publish of the pages? For ex. I created the page and want to publish it on specific time
  • i

    ifox

    06/30/2022, 9:30 AM
    Hi @BA7YA for sure, in the generated migration you may have noticed some commented columns,
    publish_start_date
    and` _end_date`. If you create those and add them to your fillable, the form sidebar will have datetime pickers. Then you can use the
    visible()
    scope when retrieving models to only take the ones that are currently published.
    b
    h
    • 3
    • 31
  • m

    mateoD

    06/30/2022, 3:21 PM
    hello everyone trying to upload image returns me this error
  • m

    mateoD

    06/30/2022, 3:24 PM
    do you have any idea what might be causing this ?
  • k

    kalle

    06/30/2022, 3:26 PM
    If its a 500, it should show you stack trace in response or in network tab]
  • m

    mateoD

    06/30/2022, 3:37 PM
    thanks you @kalle problem was extension:gd
  • d

    dakaalim

    07/01/2022, 12:18 AM
    I forgot how to add json repeater to settings page (text only)
  • i

    ifox

    07/01/2022, 12:21 AM
    if you recall let me know cause I don't think it is supported haha :/ as usual we recommend using singleton for anything settings doesn't support
  • d

    dakaalim

    07/01/2022, 12:23 AM
    Thankyou ifox
  • d

    dakaalim

    07/01/2022, 12:25 AM
    haha, maybe I can use
    formFieldSet
    instead...
  • z

    zoi

    07/01/2022, 1:09 PM
    Hello, can I add custom vue js component in Custom CMS Pages in admin?
1...353354355...484Latest