https://twill.io logo
Join Discord
Powered by
# ❓questions
  • Translating block titles in settings
    d

    david HUN

    03/23/2023, 8:02 PM
    An other i18n question. 🙂 Can I translate Block Title somehow? Tried @twillBlockTitle(trans('trans.title')) or @twillBlockTitle(@lang('trans.title')) format, but not working. I used it in settings section. Twill v3-rc4
    i
    • 2
    • 5
  • Programmatically updating Twill records
    c

    Constant Variable

    03/24/2023, 8:22 AM
    Custom front end form Hello, I'm currently busy making a site that has some front-end content editing in addition to Twill. I was wondering if you had any example code for doing an update (linking images, etc.) from custom controllers. I guess I need to import
    use A17\TwillRepositories
    and then call the functions like this:
    app(ArtistRepository::class)->update(???);
    . I'm mostly stuck on how to give the right arguments to the functions, how to handle uploading images, adding relationships, etc. Thanks for you help, beautiful morning
    i
    • 2
    • 2
  • Twill 3 class based blocks name
    d

    david HUN

    03/24/2023, 10:35 AM
    Twill v3 question: How can I use new Block component in block editor? I created a block component: php artisan twill:make:componentBlock header.topbar And I want to use it in my Header module's block editor. Tried to this, or some other format, but not working:
    Copy code
    $form->add(
                BlockEditor::make()->blocks(['header.topbar'])
            );
    h
    • 2
    • 2
  • Custom blocks paths
    n

    Nizami

    03/25/2023, 9:50 PM
    Hey, can't find info, regarding how I can map block folder, I have
    resources/views/admin/blocks
    and all blocks there, but I want to structure it a bit more and add subfolders. If I add now, it seems application can't read them, so I guess I need to add mapper, but can't find where...
    i
    • 2
    • 2
  • Constant Variable - Ability to create new recor...
    c

    Constant Variable

    03/26/2023, 9:20 AM
    Ability to create new records in browser fields Hello, I've read quite a few discussions about this, but not really any clear conclusions. Is it possible to add the possibility to open a create modal to create a new related element and refresh the browser field list? Browser fields are a great tool, and I think it would be really useful to be able to create an element without leaving the form? Thanks for your help.
    i
    • 2
    • 6
  • PHP and Laravel versions
    m

    millpreet

    03/27/2023, 4:04 AM
    Any Recommendations on the php version to use in production? Is using the latest version fine?
    c
    i
    • 3
    • 9
  • Enabling activity log in dashboard
    j

    jefsev

    03/27/2023, 7:13 PM
    If i add 'activity' => true, like illustrated here: https://github.com/area17/twill/blob/3.x/docs/content/1_documentation/8_dashboard/index.md i get the class not found for that module. When i remove 'activity' => true, it works fine but activity is always empty
    i
    • 2
    • 8
  • forNestedSlug()
    j

    jefsev

    03/27/2023, 7:16 PM
    forNestedSlug() does not seem to work properly,
    Copy code
    public function forNestedSlug(
            string $nestedSlug,
            array $with = [],
            array $withCount = [],
            array $scopes = []
        ): ?TwillModelContract {
            $targetSlug = collect(explode('/', $nestedSlug))->last();
    
            $targetItem = $this->forSlug($targetSlug, $with, $withCount, $scopes);
    
            if (!$targetItem || $nestedSlug !== $targetItem->nestedSlug) {
                return null;
            }
    
            return $targetItem;
        }
    When i explode it in my resolveRouteBinding and call forSlug it does work but the slugs in the cms are all wrong:
    i
    p
    • 3
    • 95
  • PHP configuration recommendations
    m

    millpreet

    03/28/2023, 3:09 AM
    Any advice on a baseline ram and execution time limit I should set for an ecommerce store?
    i
    • 2
    • 6
  • Installing Twill 3
    m

    millpreet

    03/28/2023, 6:13 AM
    ideas on this?
    e
    i
    a
    • 4
    • 23
  • Conditional select bug
    b

    BA7YA

    03/28/2023, 9:30 AM
    Hi guys. Just checked the this PR https://github.com/area17/twill/pull/2047 and found bug. If you have let's say select , and base on selected option you wanna see different fields. The problem is - that if you will select option A and see 123 fields, and then select option B you will still see 123fields + 456fields. Expected that if you select option B you will no see 123 fields.
    i
    • 2
    • 3
  • Migrating from Quill to Tiptap
    o

    Olivier

    03/28/2023, 2:42 PM
    how hard is it to switch to TipTap in Twill v2.x? Also, curious how hard it would be to add custom buttons to TipTap for adding structured content directly in the field editor?
    i
    • 2
    • 1
  • Custom dashboard activity
    j

    jefsev

    03/28/2023, 6:40 PM
    When using "activity" => true, in twill.php for the dashboard it seems only items are added to activity that are being added/update by a user. I'm adding messages from a from to a module using a controller and i don't seem to get them to show up in the activity. Any idea how i can fix this?
    i
    • 2
    • 4
  • Custom links in users dropdown
    j

    jefsev

    03/29/2023, 12:24 PM
    Is there a way to add a module route to the dropdown to the right before CMS users instead of in the normal place?
    i
    h
    • 3
    • 10
  • Changing main Laravel locale
    j

    jefsev

    03/30/2023, 11:29 AM
    Hi, i changed my locale from en to nl in my config/app.php and now all my page links give a 404 and creating new pages results in no column row in the page_slugs table for that page. Any idea what im doing wrong?
    i
    h
    • 3
    • 7
  • Repeater field not showing correct order
    n

    Nechalon

    03/31/2023, 3:45 PM
    Hello, what could be the problem if I try to re-order image-blocks, then they stay in the same position? When I drag that last section to top, and save it, it "saves", then I reload it, and its still at the bottom

    https://cdn.discordapp.com/attachments/811986149064441927/1091387711539134594/image.png▾

    i
    • 2
    • 21
  • VSCode setup
    m

    millpreet

    04/01/2023, 3:31 AM
    any recommendations for vscode extensions?
    c
    • 2
    • 2
  • Crops configuration
    n

    Nechalon

    04/03/2023, 11:35 AM
    Where else do I also need to edit the crops for images? Tried it in the model and in config/twill and it doesnt seem to change (Have 3 crops, and these were already there, just cant seem to edit them)
    i
    • 2
    • 31
  • Twill 3 create form
    l

    Lucius Vorenus

    04/03/2023, 12:38 PM
    NEWBIE ALERT! Adding extra fields to modals. is the advice here (https://twill.io/docs/3.x/guides/adding-fields-to-the-create-modal.html) still valid for Twill 3? I had used this advice on Twill 2, worked fine, but don't see the form.blade.php file anywhere outside the vendor directory, after I create a new module.
    i
    • 2
    • 3
  • Frontend lang switcher
    e

    elkex

    04/03/2023, 2:37 PM
    I translated my platform, but how to handle the frontend language switcher?
    i
    • 2
    • 61
  • Windows vs WSL2 for dev environment
    m

    millpreet

    04/03/2023, 6:07 PM
    windows vs WSL2 for dev environment. Chime in with your environments. so far I was learning to use Sail inside of WSL2 since long term I would prefer to run this site in a containerized fashion, likely on a cloud platform eventually. where will initial setup for dev be simpler?
    i
    j
    • 3
    • 10
  • Twill image crops rendering
    e

    elkex

    04/04/2023, 1:05 PM
    Does the Twill image crop create new versions of the images in the dimensions we provided in the models..?
    i
    • 2
    • 2
  • Documentation error on form builder select field
    l

    Lucius Vorenus

    04/04/2023, 5:10 PM
    Documentation error for Select form field? When I checked option.php, the
    make
    function requires the value first.
    Copy code
    public static function make(string|int $value, string $label, bool $selectable = true): self
        {
            return new self($value, $label, $selectable);
        }

    https://cdn.discordapp.com/attachments/811986149064441927/1092858658334974012/Screenshot_from_2023-04-04_18-04-51.png▾

    i
    • 2
    • 3
  • WSL2 vs external SSD boot ubuntu
    m

    millpreet

    04/05/2023, 3:16 AM
    WSL2 vs external SSD boot ubuntu, any notable differences/issues one may encounter.
    i
    • 2
    • 2
  • Twill 3 docs
    m

    millpreet

    04/05/2023, 3:31 AM
    will there be version 3 docs made for when version 3 stable is released
    i
    • 2
    • 4
  • PSR 2 is deprecated by PSR-12
    m

    millpreet

    04/05/2023, 3:42 AM
    PSR 2 is deprecated by PSR-12, presume this is the accepted PHP coding style now?
    i
    • 2
    • 3
  • dakaalim - Twill 2.xSQLSTATE[23000]: Integrit...
    d

    dakaalim

    04/05/2023, 5:10 AM
    Twill 2.x
    SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails
    https://github.com/area17/twill/blob/557996e4ba2af2f06533b20531b31cc5aba6f9ee/src/Repositories/Behaviors/HandleRevisions.php#L59 Shouldn'
  • Twill 3 install issue
    m

    millpreet

    04/05/2023, 5:44 AM
    any ideas what's going on here?

    https://cdn.discordapp.com/attachments/811986149064441927/1093048574549438494/image.png▾

    m
    i
    • 3
    • 41
  • Laravel Sail issue
    m

    millpreet

    04/05/2023, 6:31 AM

    https://cdn.discordapp.com/attachments/811986149064441927/1093060265127456768/image.png▾

    • 1
    • 4
  • WYSIWYG color feature
    e

    elkex

    04/06/2023, 8:56 AM
    Is there a possibility to add colours to the WYSIWYG? Or only through HTML?
    i
    • 2
    • 3
1...480481482483484Latest