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

    Dmi3yy

    06/09/2021, 10:25 AM
    yep i read the docs but see only https://tppr.me/kaKKB
  • d

    Dmi3yy

    06/09/2021, 10:27 AM
    the same if https://tppr.me/dGRVb
  • u

    user

    06/09/2021, 10:29 AM
    the error message tells where it extect things to be: Missing preview view, create one at resources/views/site/review.blade.php or provide your own using the previewView property of the review admin controller. But I am now also trying to figure out to ask twill to use 'program.show' as preview theme not 'program'
  • i

    ifox

    06/09/2021, 10:31 AM
    $previewView = 'program.show'
  • u

    user

    06/09/2021, 10:32 AM
    works for me!
  • d

    Dmi3yy

    06/09/2021, 10:36 AM
    https://tppr.me/Om04f
  • d

    Dmi3yy

    06/09/2021, 10:37 AM
    https://tppr.me/tupHv
  • i

    ifox

    06/09/2021, 10:37 AM
    seems like you're not using development/local environment as you're getting production error message, not the helpful one @User shared
  • d

    Dmi3yy

    06/09/2021, 10:37 AM
    yes )
  • d

    Dmi3yy

    06/09/2021, 10:37 AM
    thanks
  • d

    Dmi3yy

    06/09/2021, 10:37 AM
    run not on local )
  • i

    ifox

    06/09/2021, 10:37 AM
    The prefix is not used if you use previewView
  • i

    ifox

    06/09/2021, 10:38 AM
    so if you want it in site.program.show you'd use that in previewView, not just program.show
  • i

    ifox

    06/09/2021, 10:39 AM
    the views_path is only prepended when it is automatically using the singular module name
  • i

    ifox

    06/09/2021, 10:39 AM
    so if you don't use previewView you can change views_path, but if you do, it has no effect
  • d

    Dmi3yy

    06/09/2021, 10:41 AM
    thanks now all work ) need some fix in view, but work 🙂
  • i

    ifox

    06/09/2021, 10:42 AM
    great!
  • d

    Dmi3yy

    06/09/2021, 10:43 AM
    Almost finish my first site on Twill and Laravel )
  • i

    ifox

    06/09/2021, 10:43 AM
    that's awesome!
  • w

    wicky

    06/09/2021, 2:29 PM
    Is a capsule directory really necessary?
  • i

    ifox

    06/09/2021, 2:52 PM
    no
  • i

    ifox

    06/09/2021, 2:53 PM
    it was a bug
  • i

    ifox

    06/09/2021, 2:53 PM
    fixed in
    2.x-dev
    @User
  • i

    ifox

    06/09/2021, 2:54 PM
    there will be a release this week
  • i

    ifox

    06/09/2021, 2:54 PM
    https://github.com/area17/twill/commit/5a086a32d04e3889731ce547aa6b673e883ab1ce
  • f

    FoxThe3rd

    06/09/2021, 4:53 PM
    Hi, how can i pass data to a block in the admin view. I have a select field which should retrieve data from another model. I tried view composers and creators from laravel but the information gets lost somewhere. The "admin.pages.form" will get the information I would need but when the block is rendered the information is lost and not available in /views/admin/blocks/filtering.blade.php. So what I want to achieve is a dynamic form field in the admin interface for blocks. Can somebody help me with this?
  • r

    Rayderxx

    06/09/2021, 5:20 PM
    @User hm it should work
  • r

    Rayderxx

    06/09/2021, 5:20 PM
    have you try to use a browser field instead ?
  • i

    ifox

    06/09/2021, 9:36 PM
    @FoxThe3rd check this ^
  • i

    ifox

    06/09/2021, 9:37 PM
    Basically you can call anything you need from the block file itself. not always great, so I will check about view composers as we should expect that to work too
1...242526...484Latest