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

    void

    07/27/2021, 7:52 PM
    hello came up
  • v

    void

    07/27/2021, 7:53 PM
    but hide came up too as the modal got hidden :p
  • p

    pboivin

    07/27/2021, 7:53 PM
    Hehe, ok. So, not sure this is a caching problem actually. Or, maybe I'm missing the bigger picture...
  • v

    void

    07/27/2021, 7:54 PM
    are the event handlers cached some other way? 😮
  • v

    void

    07/27/2021, 7:55 PM
    fcking jQuery I knew it was a bad idea 😄
  • p

    pboivin

    07/27/2021, 7:55 PM
    This
    .on("hidden.bs.modal" ...)
    ? No, I don't think that would be cached.
  • v

    void

    07/27/2021, 7:56 PM
    I promise that code no longer exists
  • p

    pboivin

    07/27/2021, 7:57 PM
    Did you hit save in your editor? Just joking 😉
  • v

    void

    07/27/2021, 7:57 PM
    Oh noes..
  • v

    void

    07/27/2021, 7:58 PM
    I hit save but maybe on the wrong file
  • p

    pboivin

    07/27/2021, 7:59 PM
    Hehe! I've been there more times than I care to admit 😆
  • v

    void

    07/27/2021, 7:59 PM
    well that was it
  • v

    void

    07/27/2021, 8:00 PM
    actually I hate jquery and creating creating/hydrating modals
  • v

    void

    07/27/2021, 8:00 PM
    especially when its 1 html template for both update and create
  • v

    void

    07/27/2021, 8:01 PM
    overcomplicating logic instead of duplicating some code becomes technical debt sooner than later
  • p

    pboivin

    07/27/2021, 8:02 PM
    Hear hear. I like the rule of 3 for this... when you have 3 of something it's time to refactor 🙂
  • v

    void

    07/27/2021, 8:04 PM
    I thought the rule of 3 was
    Copy code
    whatever code a person puts out into the world, be it positive or negative, will be returned to that person three times.
    😄
  • v

    void

    07/27/2021, 8:07 PM
    thanks @User it was driving me nuts
  • l

    Luís Novais

    07/27/2021, 11:29 PM
    Hi guys, in preview mode the hyperlinks are disabled, can active that ?
  • p

    pboivin

    07/28/2021, 12:50 PM
    Hey @User, the previewer currently disables all buttons and links by default: https://github.com/area17/twill/blob/2.x/frontend/js/components/PreviewerFrame.vue#L37
  • p

    pboivin

    07/28/2021, 12:51 PM
    I believe it was designed to preview the current item only, not the rest of the site.
  • l

    Luís Novais

    07/28/2021, 1:02 PM
    I can override this component ? I really need this links working for anchor navigation
  • p

    pboivin

    07/28/2021, 1:05 PM
    Sure, you could use a custom build of the frontend.
  • i

    ifox

    07/28/2021, 1:13 PM
    It would be very silly and we can totally think about an option for that, but with the current implementation you could hack that by adding the class
    sf-dump-toggle
    to your links
  • i

    ifox

    07/28/2021, 1:14 PM
    https://github.com/area17/twill/blob/7dcc32a797cddbec00a5fe3ed9994d29a8e36e88/frontend/js/components/PreviewerFrame.vue#L39
  • i

    ifox

    07/28/2021, 1:16 PM
    for context this is there so that
    dd()
    output can be clicked in previews
  • h

    hazelbag

    07/28/2021, 4:02 PM
    Hey all, when using multiselect form field in a form and once one or multiple check boxes have been selected, I get the following error
    Copy code
    foreach() argument must be of type array|object, string given
  • h

    hazelbag

    07/28/2021, 4:02 PM
    Could someone maybe help me with this, the ID of the item gets store in my DB as
    Copy code
    [1, 4, 32]
  • h

    hazelbag

    07/28/2021, 4:06 PM
    Oh and it is stored in my table in a single column
  • i

    ifox

    07/28/2021, 4:07 PM
    HI, I was going to ask how are you saving it @User
1...697071...484Latest