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

    ifox

    01/13/2023, 7:30 PM
    @elkex that's not how things work for image transformations in twill. it's dynamic, where the cropped image is only generated when accessed. By using parameters on the image url, you can generate any transformation you need on the fly. See https://glide.thephpleague.com/
  • i

    ifox

    01/13/2023, 7:31 PM
    when you use image helpers on your twill models it returns the url with the crop parameters as query string, and you can add parameters to control width and so on
  • i

    ifox

    01/13/2023, 7:32 PM
    You can also use area17/twill-image for an automated frontend setup
  • a

    aolko

    01/15/2023, 12:28 AM
    hi there
  • a

    aolko

    01/15/2023, 12:28 AM
    is there a framework-agnostic version of twill?
  • i

    ifox

    01/15/2023, 12:38 AM
    Hi @aolko Twill is built with and for Laravel, so no. Do you mean for vanilla php, or for another php framework?
  • a

    aolko

    01/15/2023, 12:43 AM
    raw, vanilla php
  • a

    aolko

    01/15/2023, 10:10 AM
    rip 🪦
  • i

    ifox

    01/15/2023, 10:13 AM
    @aolko rip what?
  • a

    aolko

    01/15/2023, 12:21 PM
    Rip, the detailed answer to that question
  • a

    aolko

    01/15/2023, 2:18 PM
    Like, really, what prevents you from reimplementing that in pure php?
  • i

    ifox

    01/15/2023, 2:50 PM
    nothing is preventing me, but I don't need it, nor does our community here, not sure what your point is.
  • a

    aolko

    01/15/2023, 2:51 PM
    my point is average user wouldn't want to learn yet another dependency to use the cms
  • a

    aolko

    01/15/2023, 2:51 PM
    and yes, this approach is only right if you are writing something for yourself only
  • a

    aolko

    01/15/2023, 2:53 PM
    and since other people use it, instead of "hmm, i'll keep using this framework that __i like__ and __i find comfortable to work with__" it should be "hmm, i wonder, will it be better for the users to stick to this framework? Maybe it's too complicated for them, i'd rather port it over to the language itself"
  • i

    ifox

    01/15/2023, 2:54 PM
    I wouldn't qualify the Laravel community as myself only, still not sure what you're saying. Laravel is the most used PHP framework and there are plenty of users looking for an open source CMS toolkit built for and with Laravel.
  • a

    aolko

    01/15/2023, 2:55 PM
    you are not considering the stage when only you know about the script
  • a

    aolko

    01/15/2023, 2:55 PM
    not the proverbial "Laravel community"
  • a

    aolko

    01/15/2023, 2:56 PM
    besides, they __already__ have other, sometimes better CRUD admin panels that do the same and more
  • a

    aolko

    01/15/2023, 2:58 PM
    because, let's be honest, it's just a crud admin panel, no more, no less. To make it a cms - you have to restrict it more, you have to add the base content types and base fields, add supports for plugins, themes and provide more unnecessary tools
  • a

    aolko

    01/15/2023, 2:58 PM
    look at wordpress/joomla/drupal/dle
  • a

    aolko

    01/15/2023, 2:58 PM
    so rigid and bloated
  • a

    aolko

    01/15/2023, 3:01 PM
    those are for sure CMS, almost the same goes for MODx/b2e/grav/pimcore/processwire
  • a

    aolko

    01/15/2023, 3:01 PM
    those are CMFs, a bit more flexible sure, but still bloated
  • a

    aolko

    01/15/2023, 3:02 PM
    while, for example, sanity or directus are CRUD admin panels, even though they brand themselves as "data platforms" or "headless cms"
  • a

    aolko

    01/15/2023, 3:04 PM
    the only half-decent crud admin panel in vanilla php is cockpit, but it blows whatever is there in the pit so hard, that's not even funny
  • i

    ifox

    01/15/2023, 5:38 PM
    I agree with you about the solutions you mentioned being bloated and rigid. Twill isn't bloated or rigid, and it is much more than a CRUD admin panel. It's also not throwing a pricing page at you nor it is trying to become an opinionated turnkey CMS. You seem frustrated by other solutions and probably haven't actually tried Twill, so I'm still not sure what you're looking for. There are Laravel beginners enjoying Twill, as much as there are very experienced developers finding something they don't find elsewhere here. There are even people ending up learning Laravel through Twill, and I don't think that's a bad thing.
  • a

    aolko

    01/15/2023, 6:00 PM
    yea, i don't like frameworks at all, i'm a procedural "purist" like that. Imagine directus written in raw php and this is basically what i'm looking for.
  • a

    aolko

    01/15/2023, 6:00 PM
    except infinitely flexible, allowing for infinite content types and infinite fields
    h
    i
    • 3
    • 3
  • c

    ckmirafss

    01/15/2023, 11:16 PM
    Hi, good day! How to show other fields like these?
1...446447448...484Latest