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

    ifox

    01/18/2023, 1:01 PM
    Hi @Abdullahi that's not possible without creating your own parent model since the SoftDeletes trait is set on Twill's base model. But you can make a copy of it in your own project and remove it. There might be other parts of the code that depend on it though. Why do you want to remove it?
  • a

    Abdullahi

    01/18/2023, 5:03 PM
    I dont have softdelete enabled on my migration.
  • k

    kalle

    01/18/2023, 10:36 PM
    I think the best solution for you is to make a new alter migration which will add a new column on your tables (deleted_at). Its the simplest solution.
  • k

    Kendrickt

    01/19/2023, 5:03 AM
    Hi, I have a question about translated settings. I followed the document to setup the site-settings. But the button for changing locale is missing. Is there any other settings required to setup translated settings?
  • c

    ckmirafss

    01/19/2023, 6:27 AM
    Hi, I followed the documentation on the site for parent-child module and I got this error. I am using Version 2.12.4. TIA!
  • c

    ckmirafss

    01/19/2023, 7:01 AM
    The issue happens when clicking this.
  • h

    Harings Rob

    01/19/2023, 7:37 AM
    Hey! Interesting this is in 3.x right? Could you report this issue on github then I will look into it tomorrow.
  • h

    Harings Rob

    01/19/2023, 7:39 AM
    Hey @ckmirafss this is a bit difficult to figure out like this. What are your model names?
  • c

    ckmirafss

    01/19/2023, 7:40 AM
    hi @Harings Rob Sponsor and SponsorList
    h
    • 2
    • 28
  • k

    Kendrickt

    01/19/2023, 7:43 AM
    Sure, i will attach the code also for your references
  • h

    Harings Rob

    01/19/2023, 7:46 AM
    you did set :translatable="true" on the fields right?
  • k

    Kendrickt

    01/19/2023, 7:55 AM
    wait, it is :translatable instead of :translated?
  • k

    Kendrickt

    01/19/2023, 7:56 AM
    i did add :translated to the field
  • h

    Harings Rob

    01/19/2023, 7:59 AM
    translated is correct
  • h

    Harings Rob

    01/19/2023, 8:00 AM
    on other blocks outside settings you do get the language buttons?
  • k

    Kendrickt

    01/19/2023, 8:01 AM
    yes
  • h

    Harings Rob

    01/19/2023, 8:01 AM
    interesting :D, I guess I need to fix that as it is a bug in the new settings.
  • k

    Kendrickt

    01/19/2023, 8:06 AM
    https://github.com/area17/twill/issues/2074 I just submitted a issue and there is a problem about the media fields too.
  • h

    Harings Rob

    01/19/2023, 8:10 AM
    Hey @Kendrickt thanks for reporting. Regarding the media, did you add a block crop config for
    site_logo
    ?
  • k

    Kendrickt

    01/19/2023, 8:17 AM
    config->twill.php
    Copy code
    'block_editor' => [
            'crops' => [
                'site_logo' => [
                    'default' => [
                        [
                            'name' => 'default',
                            'ratio' => 16 / 9,
                        ],
                    ],
                    'mobile' => [
                        [
                            'name' => 'mobile',
                            'ratio' => 1,
                        ],
                    ],
                    'flexible' => [
                        [
                            'name' => 'free',
                            'ratio' => 0,
                        ],
                        [
                            'name' => 'landscape',
                            'ratio' => 16 / 9,
                        ],
                        [
                            'name' => 'portrait',
                            'ratio' => 3 / 5,
                        ],
                    ],
                ],
            ],
        ],
    Is this the setting?
  • h

    Harings Rob

    01/19/2023, 8:17 AM
    yep that should do
  • k

    Kendrickt

    01/19/2023, 8:22 AM
    The mediables table have the record for the setting block. But the site logo fields is empty
  • h

    Harings Rob

    01/19/2023, 8:22 AM
    thanks, will check.
  • b

    BA7YA

    01/19/2023, 2:54 PM
    Hi! Can we create block classes for repeaters , to pass some data in?
  • h

    Harings Rob

    01/19/2023, 2:56 PM
    Hey @BA7YA no currently not.
  • b

    BA7YA

    01/19/2023, 2:56 PM
    Thanks!
  • b

    beardcoder

    01/20/2023, 7:33 AM
    Hello togeter 🙂 I'm new in Twill.
  • b

    beardcoder

    01/20/2023, 7:35 AM
    At first, an idiotic question. How can I remove the module name prefix in the permalink section?
  • h

    Harings Rob

    01/20/2023, 7:36 AM
    hey @beardcoder, not an idiotic question. Are you on Twill 3 or Twill 2?
  • h

    Harings Rob

    01/20/2023, 7:37 AM
    General channel note: When asking a question please indicate which Twill version you are using so that we can provide better help.
1...449450451...484Latest