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

    dedli

    06/27/2022, 7:44 PM
    Does anybody know in what can be problem, in block editor preview some blocks with a lot of empty spaces, some block does not show correct, some blocks colapsed? https://monosnap.com/file/1GCnWlHVoF3KdfqjhV3PUw1wfSi6lf
  • i

    ifox

    06/27/2022, 7:45 PM
    this is most likely due to your frontend components not liking being in a different context than what they have been built for
  • i

    ifox

    06/27/2022, 7:45 PM
    check the preview layout you're using to render them
  • h

    Harings Rob

    06/27/2022, 7:47 PM
    Hey, if you want, please create an issue on github so that I can check this. I believe with updates in twill 3.x it should be possible to share the order of blocks within blocks.
  • d

    dedli

    06/27/2022, 8:14 PM
    Thanks, yes I miss js file in my block layout, but still all sliders does not show correctly, show fullwidth first slide only. Maybe it should be so?
  • h

    Harings Rob

    06/27/2022, 8:18 PM
    @dedli previews are non interactive, so do not expect mouseclicks etc to work.
  • d

    dedli

    06/27/2022, 9:04 PM
    thanks, I understand it. So if I have slider i can not see all slides, I can see first slide only, that's right?
  • i

    ifox

    06/27/2022, 9:29 PM
    That's right, but there is a PR that started to address this https://github.com/area17/twill/pull/1561
  • c

    ckmirafss

    06/28/2022, 12:43 AM
    Hello, is there a way to add social media links on the footer?
  • c

    ckmirafss

    06/28/2022, 1:20 AM
    Hello again, When I click update the video category doesn't save on database.
  • k

    kalle

    06/28/2022, 7:33 AM
    From what I see your
    $relatedBrowsers
    has wrong value. There you put name of the browser and which is in your case
    category
    not
    videoCategories
    .
  • c

    ckmirafss

    06/28/2022, 7:55 AM
    Thanks @kalle , the $relatedBrowsers should be the moduleName right?
  • c

    ckmirafss

    06/28/2022, 7:56 AM
    I don't have category module. I want to save it to videos table.
  • k

    kalle

    06/28/2022, 7:57 AM
    https://twill.io/docs/form-fields/browser.html#using-browser-fields-as-related-items No, it should be exact as the name of the browser. In you
    form.blade.php
    browser is named
    category
  • c

    ckmirafss

    06/28/2022, 7:57 AM
    I only have videos and videoCategories modules
  • i

    ifox

    06/28/2022, 7:57 AM
    the name of the field can be different than the relationship, but in that case you need to specify it
  • c

    ckmirafss

    06/28/2022, 7:58 AM
    This one right?
  • i

    ifox

    06/28/2022, 7:58 AM
    https://github.com/area17/twill/blob/1062d7c4eb82b73522719e3be447762a12b5b522/src/Repositories/Behaviors/HandleRelatedBrowsers.php#L25
  • k

    kalle

    06/28/2022, 7:59 AM
    Good to know, didnt see this feature yet.
  • k

    kalle

    06/28/2022, 8:02 AM
    Value under
    name
    should match one in
    $relatedBrowsers
    but if you want you can check ifox example and implement it under diffrent name.
  • c

    ckmirafss

    06/28/2022, 8:02 AM
    Alright. Cool. Thank you both!
  • c

    ckmirafss

    06/28/2022, 8:04 AM
    Is this correct?
  • i

    ifox

    06/28/2022, 8:09 AM
    i don't think so. The key should be your browser field name, so categories, the relationship should be the name of the relationship method on your model, model should be the model you're saving to, so videoCategories for you
  • c

    ckmirafss

    06/28/2022, 8:22 AM
    Copy! Thanks @ifox
  • c

    ckmirafss

    06/28/2022, 8:22 AM
    Btw, is it possible to add social media links on footer?
  • i

    ifox

    06/28/2022, 8:23 AM
    not sure what you mean. How to manage footer links in Twill?
  • c

    ckmirafss

    06/28/2022, 8:23 AM
    I mean this section
  • c

    ckmirafss

    06/28/2022, 8:24 AM
    Client wants to add their social links.
  • i

    ifox

    06/28/2022, 8:24 AM
    oh, interesting
  • c

    ckmirafss

    06/28/2022, 8:24 AM
    They want to add before or after the copyrights
1...351352353...484Latest