https://twill.io logo
Join Discord
Powered by
# ❓questions
  • macoe - Good afternoon. I've updated to Twill 3...
    m

    macoe

    04/26/2023, 4:55 PM
    Good afternoon. I've updated to Twill 3 and I'd like to know if the step-by-step process for configuring the block editor is still the same as presented in your YouTube video?

    https://www.youtube.com/watch?v=kAcJ5G2GhiA▾

    i
    • 2
    • 37
  • Nechalon - Is this (https://twillcms.com/docs/f...
    n

    Nechalon

    04/27/2023, 8:24 AM
    Is this (https://twillcms.com/docs/form-fields/multi-select.html#content-multi-select-with-dynamic-values) the same multi_select that we use as
    @formField('multi_select', [])
    ? I cant setup the
    name
    field for the
    multi_select
    , it gives back
    table or view not found
    error.
    i
    • 2
    • 1
  • MD - Is there a preferred method or package for...
    m

    MD

    04/28/2023, 5:28 AM
    Is there a preferred method or package for handling URL fields? Like in a perfect world it'd be a JSON column with
    { url, title, target }
    values and a single
    @formField
    i
    • 2
    • 19
  • ckmirafss - Hi there! I was wondering if it's p...
    c

    ckmirafss

    04/29/2023, 9:41 AM
    Hi there! I was wondering if it's possible to utilize Twill for the frontend of a Next.js application while also using it as an API.
    i
    • 2
    • 6
  • Abdullahi - Hi, I want to have a custom action ...
    a

    Abdullahi

    05/02/2023, 10:10 AM
    Hi, I want to have a custom action for each row on my table. So it shows a popup that i can select a list of values and then submit the action.
    i
    • 2
    • 2
  • elkex - I deployed my application to our produc...
    e

    elkex

    05/02/2023, 12:02 PM
    I deployed my application to our production server, but every time I want to save a record, I get an error requests need to be send over HTTPS instead of HTTP.. the ENV has https in the domain & admin_url, I also forces https in my AppServiceProvider and also in my public .htaccess.. What else can be done?
    k
    i
    • 3
    • 34
  • radum - #? in debug bar i can see this query se...
    r

    radum

    05/02/2023, 3:01 PM
    #? in debug bar i can see this query select * from
    blocks
    where
    blocks
    .
    blockable_type
    = 'oferteMasinis' and
    blocks
    .
    blockable_id
    = 94 and
    blocks
    .
    blockable_id
    is not null order by
    blocks
    .
    position
    asc where oferteMasinis is my table name but in the db i can see in the blockable_type the model name 'App\Models\OferteMasini'. what is the problem?
    i
    • 2
    • 4
  • AntonyPL - can i use @extends('twill::layouts.s...
    a

    AntonyPL

    05/03/2023, 10:18 AM
    can i use @extends('twill::layouts.settings', in 3x Twill suggestion approach? If i used my code form Twill 2.12 (in previous version worked corrlecty). I new approach Settings prefere a block
    • 1
    • 2
  • jefsev - When going from twill 3.0.0-rc3 to 3.0...
    j

    jefsev

    05/03/2023, 2:29 PM
    When going from twill 3.0.0-rc3 to 3.0.1 i get the following errors: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'proxeed_prod.twill_blocks' doesn't exist Same for twill_medias
    i
    • 2
    • 2
  • AntonyPL - https://twillcms.com/docs/dashboard/...
    a

    AntonyPL

    05/03/2023, 7:44 PM
    https://twillcms.com/docs/dashboard/index.html => How can enambel fe. Pages Capsules on Dashboard ?
    p
    • 2
    • 2
  • Nechalon - what could be wrong if the repeater ...
    n

    Nechalon

    05/05/2023, 3:57 PM
    Hello, what could be wrong if the repeater in the form.blade.php doesnt show in the admin panel? I used
    @formField('repeater', ['type' => 'courseSections'])
    , I checked if I use another, already existing/working repeater here, it displays, but not this one. I have setup the relationships. I have a courseCategory module where I have some categories, and I want to display some courses in the courseCategory admin form (so, basically add courses to the categories as repeaters), so I made the courseSections module (this is the repeater module). I have setup belongsTo, belongsToMany and hasMany relationships, and also setup the repositories according to the documentation. But the courseSections repeater doesnt show on the admin form.
    • 1
    • 1
  • Abdullahi - Hello, I am getting this error
    a

    Abdullahi

    05/08/2023, 10:39 AM
    Hello, I am getting this error

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

    i
    • 2
    • 48
  • Scottnj - What is the difference between blocks...
    s

    Scottnj

    05/09/2023, 7:13 PM
    What is the difference between blocks and component blocks? Where is it appropriate to use one versus the other?
    i
    • 2
    • 2
  • Scottnj - Repeater fields with component blocks...
    s

    Scottnj

    05/09/2023, 10:59 PM
    Repeater fields with component blocks? I have been able to create repeater fields using blocks. Is it possible to create repeaters using component blocks? I put
    Copy code
    Repeater::make()->type('carousel_item')
    in my Block Component. Where do I put the carousel_item file? The documentation doesn't make this clear.
    i
    • 2
    • 2
  • emil - Hi! I added my columns with the new Tabl...
    e

    emil

    05/10/2023, 8:34 AM
    Hi! I added my columns with the new Tablebuilder object. Is there anywhere an example of sorting by a relation column? Thank you
    i
    • 2
    • 3
  • tzzep - hello guys! I need a different behaviou...
    t

    tzzep

    05/10/2023, 10:57 AM
    hello guys! I need a different behaviour for vendor/area17/twill/frontend/js/mixins/formatPermalink.js. I am trying to add a file here: resources/assets/js/mixins/formatArticlesPermalink.js and call the function defined there but it looks like I can't get it to build with artisan twill:dev. Any ideas?
    i
    • 2
    • 2
  • Scottnj - When I add Medias::make()->name('main...
    s

    Scottnj

    05/10/2023, 4:21 PM
    When I add
    Copy code
    Medias::make()->name('main-image')
    to a component block it creates the form field. I am able to select an image in the backend UI, but I cannot figure out how to get it to render for the frontend.
    i
    • 2
    • 6
  • Scottnj - Can component blocks be nested inside...
    s

    Scottnj

    05/10/2023, 10:32 PM
    Can component blocks be nested inside other component blocks? I have a "heading" component block that works fine on it's own. I have a "row" component block that renders nested (regular, non component) blocks fine. When I nest the "heading" component block inside the "row" component block, I get the error:
    Copy code
    An error occured trying to render:
    View [site.blocks.app-heading] not found. in /var/www/html/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php
    My "row" is very simple
    Copy code
    php artisan twill:make:componentBlock row
    Copy code
    BlockEditor::make()->name('content'),
    Copy code
    {!! $renderData->renderChildren('content') !!}
    i
    • 2
    • 11
  • emil - Hi! sorry .. Formbuilder: something like...
    e

    emil

    05/11/2023, 9:35 AM
    Hi! sorry .. Formbuilder: something like this is not intended to work:
    Copy code
    Select::make()
           ->name('type_id')
           ->label('Type')
           ->options(
                  app()->make(TypeRepository::class)->listAll()->toArray()
    ),
    i
    • 2
    • 6
  • elkex - I followed these steps:https://twillcm...
    e

    elkex

    05/12/2023, 12:48 PM
    I followed these steps: https://twillcms.com/guides/building_a_multilingual_site_with_twill_and_laravel_localization.html#content-create-the-articles-module But the slugs of my model do not seem to translate.. For instance when I am on the registration page in English, it still shows registration as slug in the other languages instead of (NL: registratie, FR: Enregistration) etc..
    p
    i
    • 3
    • 89
  • !lost - So I added a new radio field with the n...
    u

    !lost

    05/12/2023, 11:11 PM
    So I added a new radio field with the name background to my pagescontroller getForm()
    Copy code
    php
                Radios::make()
                    ->name('background')
                    ->label('Hintergrund')
                    ->inline()
                    ->required()
                    ->options(
                        Options::make([
                            Option::make('#2B2E34', 'Primär'),
                            Option::make('#C7BAAC', 'Sekundär'),
                            Option::make('#1D1D1B', 'Tertiär'),
                        ])
                    )
            );
    i
    • 2
    • 19
  • crp87 - Using this guide https://twillcms.com/g...
    c

    crp87

    05/14/2023, 12:36 PM
    Using this guide https://twillcms.com/guides/page-builder-with-blade/creating-a-block.html I am creating a page builder BUT inside a package inside a capsule. Moving the block(s) to the capsule inside the package works. I register them with:
    Copy code
    TwillBlocks::registerPackageBlocksDirectory(
                __DIR__ . '/Twill/Capsules/Pages/resources/views/twill/blocks'
            );
    But how can I server the "preview(s)" which are usually located in /resources/views/site/blocks ? twill 3. and will there be a command or how do i need to adjust my commands, to generate twill resources directly inside my package>capsule?
    i
    • 2
    • 6
  • crp87 - I have a field called "contentimage". I...
    k

    kalle

    05/14/2023, 6:55 PM
    Do you have crops defined for that field? It seems that is missing
    c
    • 2
    • 2
  • crp87 - hey guys 🙂Have another question. It's...
    c

    crp87

    05/15/2023, 5:46 AM
    hey guys 🙂 Have another question. It's about translations. I can do:
    $item->translations->first()->meta_title
    but:
    $item->meta_title
    dose not work. But seems like an overkill to execute an additional SQL for every required translation. Accessing them through getTranslationsArray() seems also not nice because i have to put some logic inside the view. The package>capsule>model is generated with HasTranslations support and they also work properly on twill admin interface but when I try to access them individually on the page model ($item), they won't work. I can see the translations being loaded when dumping the $item with dd(). Did I just miss something?
    i
    • 2
    • 10
  • u1150432 - Hi everybody. Where i can find the m...
    u

    u1150432

    05/16/2023, 9:37 AM
    Hi everybody. Where i can find the mockdata examples to set it in my project? like in demo https://demo.twill.io/
    k
    • 2
    • 1
  • u1150432 - besides the vendors examples folder....
    u

    u1150432

    05/16/2023, 10:59 AM
    besides the vendors examples folder. i wanna mockdata like here https://demo.twill.io/. is it possible to install it?
    k
    • 2
    • 1
  • BlazinglyFast - Hi,Is it still not possible t...
    b

    BlazinglyFast

    05/16/2023, 11:37 AM
    Hi, Is it still not possible to create folders in the media library? Saw on github issues that it is not, but response was from 2018, maybe something changed. Thanks!
    i
    • 2
    • 7
  • Daniel C - hi guys! has anyone try to integrate...
    d

    Daniel C

    05/17/2023, 2:03 PM
    hi guys! has anyone try to integrate something like metronic dashboard, seem like a lot of headaches to do it
    i
    • 2
    • 9
  • Vouga - Hi everyone! To override a twill view, ...
    v

    Vouga

    05/17/2023, 2:30 PM
    Hi everyone! To override a twill view, I've create the path resources/views/vendor/twill/ and then the path of the file that I want to override. All works fine 🙂 I want to change something on a Vue component of Twill; How can I do it?
  • crp87 - Hey guys,i struggle with a few things....
    c

    crp87

    05/18/2023, 11:46 AM
    Hey guys, i struggle with a few things. I added an additional model and created 1:n relation (navigation has multiple items). I can not save because my structure doesn't allow it for an unknown reason. It's a package with capsules and the NavigationItem model is placed next to Navigation. It says NoCapsuleFoundException but I can't find a way to link the model explicitly. Also I want to be able to add nested items. The NavigationItem migrations and models are setup to support this functionality but the edit page of navigations seems to not allow drag&drop for nesting support. Only position changes are possible.

    https://cdn.discordapp.com/attachments/811986149064441927/1108722261734731847/Bildschirmfoto_2023-05-18_um_13.42.29.png▾

    p
    i
    • 3
    • 3
1...480481482483484Latest