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

    ifox

    06/28/2022, 8:24 AM
    you can override https://github.com/area17/twill/blob/2.x/views/partials/footer.blade.php
  • c

    ckmirafss

    06/28/2022, 8:25 AM
    Cool. Thanks @ifox !!!
  • i

    ifox

    06/28/2022, 8:25 AM
    by placing it your
    resources/views/admin/partials
    folder. Or
    resources/views/vendor/twill/partials
    .
  • c

    ckmirafss

    06/28/2022, 8:27 AM
    This is noted. Thank you so much!
  • m

    mateoD

    06/28/2022, 9:16 AM
    hello everyone im trying to add blocks to a page in twill
  • m

    mateoD

    06/28/2022, 9:17 AM
    but this displays me an error
  • m

    mateoD

    06/28/2022, 9:48 AM
    can you help me with something to slove that ?
  • i

    ifox

    06/28/2022, 9:50 AM
    @mateoD do you have the
    HandleBlocks
    trait on your repository class and the
    HasBlocks
    trait on your model?
  • m

    mateoD

    06/28/2022, 9:52 AM
    only has blocks
  • m

    mateoD

    06/28/2022, 9:55 AM
    i puted and handleblocks and returns the same error
  • m

    mateoD

    06/28/2022, 9:57 AM
    thanks now is working
  • i

    ifox

    06/28/2022, 9:57 AM
    > do you have the HandleBlocks trait on your repository class and the HasBlocks trait on your model? @mateoD try to read more carefully
  • m

    mateoD

    06/28/2022, 10:00 AM
    i will try ,thanks for the solution
  • f

    FourStacks

    06/28/2022, 1:30 PM
    Hey folks - has anyone run into memory allocation msql errors when working with revisions? I have a module with revisions enabled (limited to the last five revisions only). My client has reported seeing a validation error when saving a big resources with a fair number of nested repeater blocks. On investigation it turns out this error was actually triggered by a 500 server error:
  • f

    FourStacks

    06/28/2022, 1:30 PM
    Copy code
    {"message":"SQLSTATE[HY001]: Memory allocation error: 1038 Out of sort memory, consider increasing server sort buffer size (SQL: select * from `landing_page_revisions` where `landing_page_revisions`.`landing_page_id` in (83) order by `created_at` desc)",
  • f

    FourStacks

    06/28/2022, 1:32 PM
    (there is a bit more but this covers the gist of it). The JSON payload field is approx 84kb currently. I can get around the error by deleting a few revisions which then allows the post to save but ultimately that's not really a fix. I could also limit the number of revisions even further but again that feels like a temporary solution. Any thoughts? Thanks!
  • h

    Harings Rob

    06/28/2022, 1:40 PM
    Hey @FourStacks, in number of fields/repeaters how many are we talking in a rough indication? Also, what is the sort memory limit (for reproducing).
  • h

    Harings Rob

    06/28/2022, 1:41 PM
    84kb is quite a big payload 😄
  • f

    FourStacks

    06/28/2022, 2:26 PM
    Hey @Harings Rob , so this one particular page which is causing issues has a block editor field that has about 6 blocks which are repeaters and there are about 80 or so child repeater blocks spread between those 6 parents. Each of those repeater blocks consists of 8 fields of various kinds (a browser, a media field, a few radios and text fields). I'm hosting this on AWS via Laravel Vapor - the RDS instance is a MySQL 8.0 db.t2.micro 100GB. Via Vapor I've got the lambda configured with 1024mb of memory which is just the default for Vapor. Guess I could bump that a bit?
    h
    • 2
    • 5
  • f

    FourStacks

    06/28/2022, 2:27 PM
    Sorry - just reread your question - not sure what the specific sort memory limit is - not entirely sure I'd know how to go about finding out on a serverless AWS environment
    i
    • 2
    • 4
  • a

    amargoCactus

    06/28/2022, 2:37 PM
    but that only happens when i try to upload a .svg
    k
    i
    • 3
    • 17
  • a

    amargoCactus

    06/28/2022, 2:39 PM
    btw in the block editor is there a way for the block to know what the next block is?
  • f

    FourStacks

    06/28/2022, 2:40 PM
    Sorry just reread your question not sure
  • i

    ifox

    06/28/2022, 11:36 PM
    @amargoCactus check this thread
  • h

    Harings Rob

    06/29/2022, 6:14 AM
    Hey Dufji8493 so this one particular
  • g

    ghostbane

    06/29/2022, 12:43 PM
    Hey guys, silly question I think, but, Is there any function or global way to check if the user is in the Twill CMS and not the front-end? Is there a route group I can check or ?
  • h

    Harings Rob

    06/29/2022, 12:46 PM
    Hey @ghostbane I think you could check if the route name starts with
    twill.
  • i

    ifox

    06/29/2022, 12:48 PM
    that's true in Twill 3, in 2 it'd be
    admin.
  • g

    ghostbane

    06/29/2022, 12:49 PM
    Thanks guys!
  • g

    Gewoon Henne

    06/29/2022, 3:02 PM
    Hello, I'm new here so maybe the question is already posted... Is it possible to make a section or blocks with different repeaters? My goal is to make a row with cols with different types of content blocks. For example: I want to create a row with 3 cols with a block image, a block text and a block with a little form. All blocks are separate and should be can used separately in other rows. With this solution I can make different pages with a little type of blocks and reuse them.
1...352353354...484Latest