https://twill.io logo
Join DiscordCommunities
Powered by
# ❓questions
  • s

    savchuk.ivan

    02/19/2023, 11:51 AM
    @ifox @Harings Rob Good evening guys, tell me if there are any settings that you need to pay attention to in order to receive a link to the image via https? Faced with the problem that all links are formed on the site via https and images are displayed via http? The dev ops specialist said that the server is configured correctly, but he made a note about the images that two links are coming (http and https). I am using a local driver. APP_URL is registered via https.
    i
    • 2
    • 11
  • i

    ifox

    02/19/2023, 11:57 AM
    Hi @VadimG @Olivier @fabiancz sorry for the delay responding to your questions. We're launching a Twill site next week for a company that is getting a lot of attention right now. Between that and wrapping up Twill 3, we've been pretty busy! Checking your questions now.
  • e

    elkex

    02/20/2023, 8:55 AM
    For some reason is ->published() not working in my repository.. The field is there in my DB, but it still shows unpublished items..
  • j

    jefsev

    02/20/2023, 1:25 PM
    Hi, i was wondering if the helper function already exists for searching blocks as mentioned here: https://github.com/area17/twill/issues/190 🙂
  • j

    jefsev

    02/20/2023, 1:28 PM
    Anyhow, how would the example work for a multilingual site where all text fields are on translatable => true
  • k

    kalle

    02/20/2023, 1:30 PM
    Example in the issue is fine for the start. Since blocks are JSON type, you can pluck them to return results per lang.
  • j

    jefsev

    02/20/2023, 1:30 PM
    ah did not know that, thx
  • k

    kalle

    02/20/2023, 1:32 PM
    Check the DB via some manager, you will get an idea how to make it work for your use case.
  • j

    jefsev

    02/22/2023, 10:43 AM
    Hi, how do i get named repeaters.
    Copy code
    $block->children('women_dropdown')
    Does not work.
  • i

    ifox

    02/22/2023, 10:46 AM
    this is a standard eloquent relationship, you can add a where close
  • i

    ifox

    02/22/2023, 10:46 AM
    instead of trying to send a parameter to the function
  • j

    jefsev

    02/22/2023, 10:55 AM
    Ah i see now, works only on type not name.
  • j

    jefsev

    02/22/2023, 10:55 AM
    thx 🙂
  • j

    jefsev

    02/23/2023, 9:53 AM
    Quick question about capsules. Are they in functionality the same as modules? I'm adding some e-commerce light functionality to a twill site and maybe it's nice if i can reuse it later on. If it works the same as modules i don't have to readup on it now. 😶 deadlines...
  • i

    ifox

    02/23/2023, 9:57 AM
    Yes it is the same thing, just in a more contained way for reusability and packaging
  • j

    jefsev

    02/23/2023, 9:57 AM
    🙂
  • j

    jefsev

    02/23/2023, 10:55 AM
    How can i make 2 columns left & right with the form builder inside the controller instead of the view in twill 3?
  • i

    ifox

    02/23/2023, 10:56 AM
    https://discord.com/channels/811936425858695198/811986149064441927/1074053220009255072
  • j

    jefsev

    02/23/2023, 11:00 AM
    thx
  • r

    radum

    02/24/2023, 9:56 AM
    Hi, in twill we can have a dynamic way to select the crop for mobile /tablet/desktop in the layout?
  • r

    radum

    02/24/2023, 9:56 AM
    the documentation is not very clear about this feature
  • i

    ifox

    02/24/2023, 9:57 AM
    Hi @radum what do you mean by dynamic? You can configure as many named crops as you want, and in each you can allow multiple ratios (including a 0 or null ratio which let's the user crop freely)
  • r

    radum

    02/24/2023, 10:00 AM
    what i mean is in the admin panel i can create an article with multiple crops. in the controller/view how can i dispaly that crop depending on the screen size
  • i

    ifox

    02/24/2023, 10:02 AM
    you can use the area17/twill-image package to make it easier, but ultimately it is about rendering responsive images using srcset and picture tags that you'd feed urls by calling
    $item->image('role', 'crop')
  • r

    radum

    02/24/2023, 10:05 AM
    tkanks. i will look into that
  • j

    jefsev

    02/24/2023, 11:10 AM
    Hi, When adding readonly to a input like this: Input::make()->name('order_total')->readonly(true)->label('Order total'), I get Call to undefined method A17\Twill\Services\Forms\Fields\Input::readonly() How do i set a readonly field with the formbuilder?
  • h

    Harings Rob

    02/24/2023, 11:14 AM
    I think it is
    ->disabled()
  • j

    jefsev

    02/24/2023, 11:43 AM
    Ah oke thx works Grouping them in an array does not work i see:
  • j

    jefsev

    02/24/2023, 11:43 AM
    Copy code
    $form->add([
                    Input::make()->name('proxeed_men_q')->disabled()->label('Proxeed men quantity')->note('Amount ordered'),
                    Input::make()->name('proxeed_women_q')->disabled()->label('Proxeed women inositol quantity')->note('Amount ordered'),
                    Input::make()->name('order_total')->disabled()->label('Order total'),
                    Input::make()->name('order_nr')->disabled()->label('Order number'),
                    Input::make()->name('mollie_id')->disabled()->label('Mollie id'),
            ]);
    This results in a render error because it's an array. How would i add more than one or do i have to call ->add on every input?
  • h

    Harings Rob

    02/24/2023, 11:45 AM
    In which method are you calling this?
1...468469470...484Latest