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

    ifox

    01/11/2023, 2:50 PM
    so the Vue app isn't loading at all
  • j

    jefsev

    01/11/2023, 2:50 PM
    Oke
  • i

    ifox

    01/11/2023, 2:51 PM
    the nav is in blade, that's why you're seeing that part
  • j

    jefsev

    01/11/2023, 2:52 PM
    Ah oke, i'm not very at home with CSP. This is being caused by my network not the server? Because the website is running on a server which is not on our network.
  • i

    ifox

    01/11/2023, 2:59 PM
    CSPs can be configured at the web server level (nginx, caddy...) or directly in your laravel application through a package like laravel-csp
  • i

    ifox

    01/11/2023, 3:00 PM
    most likely the server you're running from has a strict CSP setup
  • j

    jefsev

    01/11/2023, 3:01 PM
    thx 🙂
  • j

    jefsev

    01/11/2023, 9:02 PM
    Hi, so i have a blogs module. I can create blogs now 🙂 But how would one go about making the blog index page editable with a block editor inside de blogs module in twill. What i did is create a blog page in in my pages module and creating a block which loads all blogs but this makes for a lot of nasty problems with my nested multilingual pages routes. I'm curious if there is a better way in adding the index to de module itself and also giving it a block editor of even normal fields for that matter.
  • i

    ifox

    01/11/2023, 9:16 PM
    Hey @jefsev sounds like you're looking for a singleton module
  • i

    ifox

    01/11/2023, 9:16 PM
    it's a module with a single record
  • i

    ifox

    01/11/2023, 9:17 PM
    that way it can have any fields and blocks you need specifically for your index page
  • j

    jefsev

    01/12/2023, 6:45 PM
    thx 🙂
  • c

    ckmirafss

    01/13/2023, 7:29 AM
    Hi, I am trying to replicate this 2 navigation:
  • c

    ckmirafss

    01/13/2023, 7:30 AM
    Here are my current setup:
  • c

    ckmirafss

    01/13/2023, 7:31 AM
    Here's the error i got
  • k

    Koili

    01/13/2023, 9:08 AM
    Hey, Is it possible to pass an array of data (for instance a list of models) to a block blade template partial, for use in a select dropdown? I can see how populating a module controller's formData() method enables passing data to the root form, but is it possible to "drill down" this variable further into a block repeater? (this is twill2, but im willing to upgrade to twill3 if needed)
  • i

    ifox

    01/13/2023, 9:12 AM
    https://twill.io/docs/block-editor/adding-data-to-block-forms.html
  • k

    Koili

    01/13/2023, 9:27 AM
    I sometimes amaze myself how deep into documentation I read in, and still manage to miss the crucial parts and basic usage
  • i

    ifox

    01/13/2023, 9:29 AM
    no worries, that's what discord is for 😉
  • k

    kalle

    01/13/2023, 9:45 AM
    You have some issues with the twill-navigation.php Can you copy code content for us to edit it? Or write to me in the DM, Ill help you.
    c
    • 2
    • 8
  • j

    jefsev

    01/13/2023, 9:49 AM
    Hi, I get a strange error when using a singleton. It worked before. Too few arguments to function Illuminate\Routing\Router::singleton(), 1 passed in /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 338 and at least 2 expected
  • j

    jefsev

    01/13/2023, 9:50 AM
    I never have passed 2 🙀
  • i

    ifox

    01/13/2023, 9:51 AM
    Laravel team broke it by adding a singleton route macro, see https://github.com/area17/twill/issues/1961
  • j

    jefsev

    01/13/2023, 9:51 AM
    Damn them 😛
  • j

    jefsev

    01/13/2023, 9:52 AM
    Works like a charm again
  • j

    jefsev

    01/13/2023, 9:52 AM
    thx
  • c

    ckmirafss

    01/13/2023, 12:52 PM
    You have some issues with the twill
  • e

    elkex

    01/13/2023, 1:22 PM
    I created a private disk to store all my files and images to. But the images do not seem to show anymore.. The images store in the correct location, but the preview path in the backend does not seem to work anymore..
  • e

    elkex

    01/13/2023, 2:11 PM
    I created a private disk to store all my files and images to. But the images do not seem to show any
    • 1
    • 1
  • e

    elkex

    01/13/2023, 3:18 PM
    Is it possible to generate multiple crop versions of an image even if you uploaded it full size, but need a more 'light-weight' version for a thumbnail preview? It only seems to create a record in the "mediables" table with the width & height, but I cannot seem to find the cropped image in my storage folder..
1...445446447...484Latest