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

    ifox

    06/04/2021, 8:38 PM
    this will be the new nested repeater button design
  • t

    ton212

    06/05/2021, 6:51 AM
    Hi guys! I wonder if this is by design that the single checkbox returns checked value as an array?
  • t

    ton212

    06/05/2021, 6:52 AM
    Copy code
    @formField('checkbox', [
                'name' => 'featured',
                'label' => 'Featured'
            ])
  • t

    ton212

    06/05/2021, 6:53 AM
    I'm trying to use the checkbox field in the settings section and it seems like the returned array breaks the SettingController::update() method.
  • u

    user

    06/05/2021, 8:04 AM
    Yeah you were correct. it was not configured correctly. Works now and works in Glide
  • o

    ozgurkaragoz

    06/06/2021, 12:10 PM
    hi, how can i use Twill's email layout for my custom emails?
  • i

    ifox

    06/06/2021, 1:39 PM
    Hi @ozgurkaragoz you should be able to use the layout as a component in your app's email views:
    @component('twill::emails.html.layout') ... @endcomponent
  • i

    ifox

    06/06/2021, 1:42 PM
    Hi @ton212 this is probably an issue specific to settings. Not all fields are correctly supported there, but our goal is that they all should be, even more complex fields like browser, repeater and block editor.
  • o

    ozgurkaragoz

    06/06/2021, 2:25 PM
    hi @User, i tried this but css file is not working. So this is not enough. I copied Twill's "default.css" file to my own folder and I added
    public $template = 'twill.css';
    to my Mail class and it worked.
  • d

    domihagen

    06/07/2021, 11:27 AM
    Hello together, i was just deploying the Twill-Update to our Test-System and got this Error on
    php artisan view:cache
  • d

    domihagen

    06/07/2021, 11:27 AM
    The "/var/www/app/Twill/Capsules" directory does not exist.
  • d

    domihagen

    06/07/2021, 11:28 AM
    Has anyone an idea, how to fix this?
  • d

    domihagen

    06/07/2021, 11:35 AM
    Got it. Just created and commited this directory...
  • d

    domihagen

    06/07/2021, 11:36 AM
    I think this should be generated automatically on
    twill:update
  • i

    ifox

    06/07/2021, 11:59 AM
    thanks for flagging. I think this should not be required, actually
  • r

    Rayderxx

    06/07/2021, 11:59 AM
    @ifox same here
  • i

    ifox

    06/07/2021, 12:02 PM
    do you mean you ran into the same issue? Or you agree it should not be required to have this empty folder in your app? Or both? 😉
  • r

    Rayderxx

    06/07/2021, 12:02 PM
    issue 😄
  • i

    ifox

    06/07/2021, 12:02 PM
    ok, on view:cache too?
  • r

    Rayderxx

    06/07/2021, 12:02 PM
    yep
  • i

    ifox

    06/07/2021, 12:40 PM
    @User @User can you try
    2.x-dev
    ? just pushed: https://github.com/area17/twill/commit/5a086a32d04e3889731ce547aa6b673e883ab1ce
  • r

    Rayderxx

    06/07/2021, 12:42 PM
    @User good for me
  • i

    ifox

    06/07/2021, 12:44 PM
    awesome thanks
  • s

    Shiftless

    06/07/2021, 3:12 PM
    We are creating and updating Models programaticly. And i am now wondering if there is a way to make revision work with it?
  • i

    ifox

    06/07/2021, 3:14 PM
    hi @User sure, that should be doable. revisions are storing the json submission from the frontend though, so you might have to look into how they look when changing from the UI to reconstruct them programmatically
  • s

    Shiftless

    06/07/2021, 3:15 PM
    Ah okay ill have a look into that.
  • i

    ifox

    06/07/2021, 3:15 PM
    or, create and update models through the module's repository
  • i

    ifox

    06/07/2021, 3:15 PM
    that will create revisions automatically
  • s

    Shiftless

    06/08/2021, 7:24 AM
    I did try it this way and i am not understanding how to pass a translated field to the create function to not get the error that a translated field is not set.
  • i

    ifox

    06/08/2021, 7:31 AM
    Copy code
    'yourFieldName' => [
      'en' => 'value',
      'anotherLanguage' => 'valueTranslated'
    ]
1...222324...484Latest