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

    Harings Rob

    12/13/2022, 1:25 PM
    It depends what you want to do 🙂
  • h

    Harings Rob

    12/13/2022, 1:26 PM
    A repeater can be a json field or a related model
  • h

    Harings Rob

    12/13/2022, 1:26 PM
    https://twill.io/docs/guides/json_repeaters.html#base-setup
  • e

    elkex

    12/13/2022, 1:26 PM
    Aha okay
  • e

    elkex

    12/13/2022, 3:18 PM
    If this model has translations, do I have to add the JSON to the model or model_translations table?
  • i

    ifox

    12/13/2022, 4:27 PM
    are you using a JSON column to save the repeater?
  • k

    kalle

    12/14/2022, 12:24 PM
    I cant find any reference to this, but what is the way to setup column layout on module edit form? 2.x
  • i

    ifox

    12/14/2022, 1:12 PM
    @kalle
    @formColumns
  • k

    kalle

    12/14/2022, 1:48 PM
    Not at the project currently to test this, but is this for inner content section or to make columns layout from sections? Since I have multiple additional sections, and this would be cool to implement.
  • i

    ifox

    12/14/2022, 2:18 PM
    not sure what you mean @kalle
  • i

    ifox

    12/14/2022, 2:18 PM
    @formColumns is to display multiple fields on the same line, up to 3
  • k

    kalle

    12/14/2022, 3:50 PM
    Ok then it isnt really helpful to me in this use case, but its handy to know this too. What I wanted to explain is if you look at your PR https://github.com/area17/twill/pull/1963 and screenshot, you have additional sections called 'Meta' and 'Content'. I thought there is column layout for this type of rendering. 🙂
  • i

    ifox

    12/14/2022, 3:53 PM
    I'm still not sure I understand how columns would look like for fieldsets
  • i

    ifox

    12/14/2022, 3:54 PM
    like, literally side by side meta and content?
  • k

    kalle

    12/14/2022, 3:55 PM
    Yes haha. Problem is in my case, all of fieldsets input components are small width and there is bunch of them in one fieldset. So with 5+ addtional fieldsets, content is just long and empty. But Ill combine them per fieldset to make it shorter with @formColumns to save some space if there is no better solution atm
  • t

    tfilos

    12/15/2022, 8:42 PM
    Hey! I just did a quick apt-upgrade on my production machine and oddly none of the URLs going through the Glide image resize service are resizing anymore. Doublechecked to make sure it didn't switch to a different version of PHP, etc. Any thoughts of what could cause this?
  • t

    tfilos

    12/15/2022, 8:56 PM
    Not seeing any errors, GD is still installed, nothing has changed with the codebase or config
  • t

    tfilos

    12/15/2022, 9:23 PM
    Hmm, the upgrade is a coincidence. It's doing it on my local machine on Valet now too. Definitely code related
  • h

    Harings Rob

    12/15/2022, 10:14 PM
    Hey @tfilos what twill version?
    t
    • 2
    • 2
  • t

    tfilos

    12/15/2022, 10:16 PM
    Hmm, I think I just replied off thread, sorry
  • t

    tfilos

    12/15/2022, 10:17 PM
    @Harings Rob 2.8
  • t

    tfilos

    12/15/2022, 10:18 PM
    I remember hearing that some things were resolved in 3 potentially, with some of the image functionality
  • t

    tfilos

    12/16/2022, 2:06 AM
    What does an upgrade path from 2.8 to 3 look like?
  • s

    savchuk.ivan

    12/16/2022, 8:39 AM
    Good afternoon guys! Do not tell me how to set the maximum image size for uploading a photo? I have a block with an image field and a quote. I need to limit the size of the photo so that I can't add more than 250x250px for the example. Or at least hint where to dig this case?
    i
    • 2
    • 4
  • i

    ifox

    12/16/2022, 9:15 AM
    @tfilos glide isn't supposed to be broken on 2.8 though so updating 2 or upgrading to 3 wouldn't necessarily change much for you. You say it is definitely code related, so what has changed? Have you updated Twill to 2.8 recently and it started breaking after that?
  • i

    ifox

    12/16/2022, 9:15 AM
    https://github.com/area17/twill/blob/3.x/UPGRADE.md
  • i

    ifox

    12/16/2022, 9:16 AM
    most of it is automated using Rector
  • i

    ifox

    12/16/2022, 9:24 AM
    Limit media size
  • t

    tfilos

    12/16/2022, 1:22 PM
    The odd thing is, I hadn't changed anything in the code at all, since launch. My client hit me up to tell me. I made sure my local was in sync with their production machine and it's doing it on my local as well. But I haven't changed anything, upgraded any packages, etc since launch when it was working. It's really odd.
  • i

    ifox

    12/16/2022, 1:23 PM
    and its rendering the images, just not applying any transformation?
1...437438439...484Latest