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

    Mitchell Smith

    06/18/2021, 2:46 PM
    there's just no content in the left-hand menu
  • i

    ifox

    06/18/2021, 2:46 PM
    that's a bug, the button shouldn't be there until you add the block_editor field
  • i

    ifox

    06/18/2021, 2:46 PM
    it's there because you said you wanted to use blocks, but since the form field is not added by default, it does not really make sense
  • i

    ifox

    06/18/2021, 2:47 PM
    we should just publish the form view with the block editor field enabled
  • m

    Mitchell Smith

    06/18/2021, 2:47 PM
    ah I see, adding the field adds those default ones in now
  • m

    Mitchell Smith

    06/18/2021, 2:53 PM
    do those default blocks not come with default previews then?
  • i

    ifox

    06/18/2021, 3:04 PM
    no, that's where twill stops dictating how your frontend is being built. That preview could be a blade file, but it could also be an iframe previewing an SPA or SSG site
  • i

    ifox

    06/18/2021, 3:05 PM
    now, I hear you, we could have a sensible default to avoid the error, but the error is also there to help you take control
  • m

    Mitchell Smith

    06/18/2021, 3:05 PM
    gotcha
  • m

    Mitchell Smith

    06/18/2021, 3:06 PM
    when using the kalnoy/nestedset package with a Page-style module, do I use the Browser field to handle the parent/child relationships?
  • m

    Mitchell Smith

    06/18/2021, 3:09 PM
    https://twill.io/docs/#architecture-concepts mentions this but really doesn't go into any detail
  • i

    ifox

    06/18/2021, 3:09 PM
    no, there's going to be a field for that in the right sidebar
  • m

    Mitchell Smith

    06/18/2021, 3:09 PM
    ah
  • m

    Mitchell Smith

    06/18/2021, 3:10 PM
    I installed the package and added its trait to my model but don't see that field
  • i

    ifox

    06/18/2021, 3:10 PM
    https://twill.io/docs/#nested-module
  • m

    Mitchell Smith

    06/18/2021, 3:10 PM
    that link doesn't resolve
  • m

    Mitchell Smith

    06/18/2021, 3:10 PM
    just goes to the preface
  • m

    Mitchell Smith

    06/18/2021, 3:10 PM
    oh I see
  • m

    Mitchell Smith

    06/18/2021, 3:10 PM
    last section under CRUD
  • i

    ifox

    06/18/2021, 3:11 PM
    we're going to change this too, anchors are not doing a great job. We're moving to separate page instead of this huge scrolling page.
  • m

    Mitchell Smith

    06/18/2021, 3:11 PM
    yeah separate pages would be good
  • i

    ifox

    06/18/2021, 3:11 PM
    it does scroll down for you if you give it a second though
  • m

    Mitchell Smith

    06/18/2021, 3:11 PM
    for some reason it stripped the anchor out completely
  • m

    Mitchell Smith

    06/18/2021, 3:12 PM
    I waited a bit
  • m

    Mitchell Smith

    06/18/2021, 3:12 PM
    I think it's cause I clicked the preview title not the actual link
  • m

    Mitchell Smith

    06/18/2021, 3:14 PM
    I still don't see the field
  • i

    ifox

    06/18/2021, 3:23 PM
    ok I see a step missing from the docs, the controller's formData needs to return a collection of parents. FYI this has been shared in this format because we wanted to share it as early as possible but all that code is all going to be moved in Twill so that you don't have to do it manually
  • m

    Mitchell Smith

    06/18/2021, 3:24 PM
    so how do I do this manually?
  • m

    Mitchell Smith

    06/18/2021, 3:25 PM
    override formData method and do I put the parents in a 'parents' key inside the array returned by formData?
  • m

    Mitchell Smith

    06/18/2021, 3:25 PM
    select all from parent relationship method?
1...282930...484Latest