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

    user

    07/07/2021, 5:08 PM
    I see. Thank you. Will check it out.
  • u

    user

    07/07/2021, 5:14 PM
    Twill is a life saver. I think this can have a mass adoption if we have (a) few sample apps (b) In-depth documentation with examples (c) Providing standard files in the respective folders itself (for example, users module files are missing in the controller, views, etc). Finally, some basic pages for the frontend as well. I am not a very experienced developer, but certainly would love to contribute in anyway I can - especially tweaking or providing default frontend views...
  • p

    pboivin

    07/07/2021, 5:16 PM
    That's great! Contributions are definitely welcome. A quick note on the frontend — From my perspective, it's actually a feature of Twill. It has no opinion on how you should build your frontend.
  • u

    user

    07/07/2021, 5:26 PM
    I understand, its just makes it easy to visualise... if you guide me.. I can properly work on this and provide a basic front-end, probably, any pages module - home page, about, services, contact
  • p

    pboivin

    07/07/2021, 5:38 PM
    Checkout https://github.com/croustille-io/twill-boilerplate It's a complete starter app with frontend views.
  • u

    user

    07/07/2021, 6:22 PM
    is it for nginx ? I use standard LAMP ....
  • u

    user

    07/07/2021, 6:24 PM
    Just reviewing the code... this is super helpful.
  • p

    pboivin

    07/07/2021, 6:27 PM
    I believe it uses Laravel Homestead, which you can configure for Nginx or Apache. It should work well with both.
  • u

    user

    07/07/2021, 6:30 PM
    Okay, will give a try.
  • v

    vianney

    07/07/2021, 9:20 PM
    Hi quick question about vue custom blocks
    Copy code
    <input
      type="text" placeholder=""
      name="blocks[1625692250779][vimeo_banner_title]" 
      id="blocks[1625692250779][vimeo_banner_title]-1625692251370" autocomplete="on"
    >
    How would i generate this block's id so I can add more input fields to add to the request? Edit: the above example is just a default text field that comes with twill and i want to mimic the name and id of the element
  • p

    pboivin

    07/07/2021, 9:28 PM
    Hey @User, not sure I fully understand what you are trying to accomplish. Do you want to add extra fields to your block template dynamically?
  • v

    vianney

    07/07/2021, 9:28 PM
    yep
  • v

    vianney

    07/07/2021, 9:28 PM
    not sure if that's the best way to do it
  • p

    pboivin

    07/07/2021, 9:28 PM
    Have you tried with a repeater?
  • v

    vianney

    07/07/2021, 9:29 PM
    i'm trying to implement a way to upload vimeo videos
  • v

    vianney

    07/07/2021, 9:30 PM
    would a repeater be a good solution to upload vimeo videos for this?
  • p

    pboivin

    07/07/2021, 9:30 PM
    You want to store a list of Vimeo URLs as part of your block?
  • v

    vianney

    07/07/2021, 9:30 PM
    like upload a video on your local drive and it would be uploaded to vimeo
  • v

    vianney

    07/07/2021, 9:30 PM
    yeah
  • p

    pboivin

    07/07/2021, 9:30 PM
    Then yeah, a repeater is the easiest solution : https://twill.io/docs/#adding-repeater-fields-to-a-block
  • v

    vianney

    07/07/2021, 9:45 PM
    just to double check: is it possible to add a field within a custom vue block for the request?
  • v

    vianney

    07/07/2021, 9:46 PM
    I have an
    Copy code
    <a17-custom-vimeo-uploader-block>
    with input fields that are not getting added to the request
  • p

    pboivin

    07/07/2021, 9:48 PM
    Yes, that should be possible. Can you share a bit more about your custom component?
  • v

    vianney

    07/07/2021, 9:50 PM
    Copy code
    CustomVideoUploaderBlock.vue
    
    <input name="vimeo_url" type="hidden" :value="iframeUrl" />
    I'm trying to store a string into this input and have it added to a request when saving so I can save it to my database with the Repository@beforeSave function
  • v

    vianney

    07/07/2021, 9:51 PM
    I want to add that string into the content array for my custom block (this is the dumped request) edit: in this case i would want "vimeo_url" added to the content array
  • p

    pboivin

    07/07/2021, 10:05 PM
    How are you storing the other content in the block? Are those built-in form components? (like a17-textfield and such ?)
  • v

    vianney

    07/07/2021, 10:05 PM
    like syncing saved data? and yes kind of like the basic a17 text field
  • p

    pboivin

    07/07/2021, 10:06 PM
    Ok, are you using
    BlockMixin
    in your custom block?
  • v

    vianney

    07/07/2021, 10:07 PM
    Yes sir
  • p

    pboivin

    07/07/2021, 10:07 PM
    I believe all you are missing is
    fieldName('vimeo_url')
    to generate your
    name
    attribute
1...545556...484Latest