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

    bmau

    06/14/2022, 12:37 PM
    Is accessing the wysiwyg data done by using ->input helper on block? Like
    {!! $block->input('text') !!}
    or is there a special block function to deal with wysiwyg data?
  • k

    kalle

    06/14/2022, 12:57 PM
    Do you ask this because you have issues with ->input and wysiwyg or? Method
    input
    should work with WYSIWYG fields.
  • i

    ifox

    06/14/2022, 4:50 PM
    I get the confusion, input is the name of a specific field, so one might think they need a function per field type. but yeah input works for any standard field technically (not browsers or medias obviously)
  • i

    ilcotti

    06/15/2022, 10:04 AM
    hi all, is it possible to set a filter for records that have an associated image?
    i
    • 2
    • 2
  • k

    Kormi

    06/15/2022, 1:13 PM
    Hi, I add some checkboxes in my admin settings page When I save... this error appears > Array to string conversion > vendor/laravel/framework/src/Illuminate/Support/Str.php How can I use array in settings?
  • k

    Kormi

    06/15/2022, 1:21 PM
    I also create a new Model in my app
    Copy code
    <?php
    
    namespace App\Models;
    
    use A17\Twill\Models\Setting as TwillSettings;
    
    class Setting extends TwillSettings
    {   
        protected $casts = [
            'sendinblue_list' => 'array',
        ];
    }
    but nothing change
    i
    • 2
    • 2
  • u

    23r01nf1n17y

    06/15/2022, 3:10 PM
    The docs article for nested modules (https://twill.io/docs/crud-modules/nested-modules.html#parent-child-modules) uses the parent and child "type" in the generated "slugged" URL.

    https://twill.io/docs/assets/img/nested-child-form.d1ea463c.png▾

    Is there a way to get:
    localhost/hello-world/foo-bar
    instead of
    localhost/issues/hello-world/articles/foo-bar
    i
    • 2
    • 10
  • i

    ifox

    06/15/2022, 3:44 PM
    Nested modules permalink
  • i

    ifox

    06/15/2022, 3:45 PM
    Filtering records that have an associated image
  • i

    ifox

    06/15/2022, 3:47 PM
    checkbox in settings
  • m

    MedvedOurs

    06/16/2022, 11:31 AM
    Hey all! Does anyone knows of an easy way to override the dasboard view to make a custom one?
    k
    • 2
    • 4
  • b

    BA7YA

    06/16/2022, 11:52 AM
    Hi guys. Im trying to paste text with anchor link, and getting this issue ( the text will be not saved after click update)
    k
    • 2
    • 10
  • k

    kalle

    06/16/2022, 12:41 PM
    Dashboard view override
  • k

    kalle

    06/16/2022, 12:49 PM
    WYSIWYG problem
  • m

    mateoD

    06/17/2022, 12:28 PM
    hello everyone , i have no image uploaded in block and render displays me an error "Attempt to read property "width" on null"
  • i

    ifox

    06/17/2022, 12:29 PM
    hi @mateoD, you should use
    ->hasImage
    before trying to render one
  • m

    mateoD

    06/17/2022, 12:30 PM
    i tryed that but it returns always false
  • m

    mateoD

    06/17/2022, 12:31 PM
    in both cases it returns no image
  • i

    ifox

    06/17/2022, 5:30 PM
    what's the
    name
    of your medias field in the block and your config for
    twill.block_editor.crops.<your-media-field-name>
    ?
  • s

    Sami

    06/19/2022, 12:50 PM
    Hello, I'm having trouble to setup Laravel server + Vue client stack with Twill. The problem seems to be CORS. When I use
    artisan serve
    command with
    APP_URL
    and
    ADMIN_APP_URL
    set to
    127.0.0.1
    in
    .env
    , I get errors in Twill when uploading/downloading images If I use VirtualHosts and set a local domain for the app, then Vue from
    localhost:3000
    shouts at me I'm making a CORS request 😅 Does anybody here use Laravel (+ Twill) with Vue and would be kind enough to give me some advice on how to setup the dev environment correctly?
  • i

    ifox

    06/19/2022, 12:54 PM
    hi @Sami can you share the error? Do you mean the dev environment to customize/contribute to Twill?
  • i

    ifox

    06/19/2022, 12:55 PM
    https://twill.io/docs/guides/creating_custom_components_form_fields_and_blocks.html#part-1-setup-twill-for-development
  • i

    ifox

    06/19/2022, 12:56 PM
    rereading you it seems like you don't want to do that, just run a Laravel app on localhost with artisan serve? Are you using a port?
  • s

    Sami

    06/19/2022, 12:56 PM
    Not contributing. (yet 😅 )
  • s

    Sami

    06/19/2022, 12:58 PM
    The error:
  • s

    Sami

    06/19/2022, 12:59 PM
    my .env
    Copy code
    APP_URL="http://127.0.0.1"
    #TWILL
    ADMIN_APP_URL="127.0.0.1"
    ADMIN_APP_PATH=admin
    MEDIA_LIBRARY_ENDPOINT_TYPE=local
  • s

    Sami

    06/19/2022, 12:59 PM
    It seems like it does not search on the port 8000
  • i

    ifox

    06/19/2022, 1:00 PM
    why would it? You didn't specify a port in your app url. You can use GLIDE_BASE_URL if you don't want to add a port to APP_URL for some reason
  • s

    Sami

    06/19/2022, 1:01 PM
    ye, with artisan serve or Virtualhost from Apache, it doesn't matter. We are experimenting with Vue and Laravel stack and trying to setup the development environment
  • s

    Sami

    06/19/2022, 1:06 PM
    Oh, it works!
1...345346347...484Latest