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

    Hữu Hiếu

    09/04/2021, 11:46 AM
    im new in twill
  • h

    Hữu Hiếu

    09/04/2021, 11:46 AM
    i have a relationship table of student table and course table. This table has fields course_id , student_id , is_paid (true/false) . i use browser in formfield course module to add student. Is there a way to add student from browser and add is_paid attribute
  • i

    ifox

    09/04/2021, 12:06 PM
    Hi @Hữu Hiếu! You would need a repeater in that case, so that you can add fields to each selected student. It would definitely be nice to have a few fields available when using a browser, but at the moment a browser only stores the position.
  • j

    jamel

    09/05/2021, 8:48 AM
    Hellooo, i was wondering is it possible to define max width and height for crops ?
  • s

    sirhc

    09/05/2021, 10:19 PM
    In the middle of creating a custom form field but I'm a bit lost as to why I can't seem to be able to pass any props from my blade file to my vue file as documented in the spectrum post on the subject https://spectrum.chat/twill/tips-and-tricks/adding-a-custom-block-to-twill-admin-view-with-vuejs~028d79b1-b3cd-4fb7-a89c-ce64af7be4af my example
    Copy code
    <a17-block-vue-example
     subtitle="testing"
    ></a17-block-vue-example>
    I use it like so
    Copy code
    <template>
      {{ subtitle }}
    </template>
    <script>
      export default {
        props: {
            subtitle: String
        },
    }
    </script>
    and receive: Uncaught ReferenceError: subtitle is not defined
  • i

    ifox

    09/06/2021, 11:50 AM
    Hi @sirhc, did you solve this? Not sure if that was the culprit but you have a trailing comma in your exported object.
  • i

    Ivan Markov

    09/06/2021, 12:18 PM
    Hi. I see you have updated the package twill-image. (dev-develop) I can't figure out how to display sources. It turns out to display only 1 image
  • i

    ifox

    09/06/2021, 12:26 PM
    the API and config keys are being updated, make sure to check that you're using the right naming cc @patrick
  • m

    Mho

    09/06/2021, 12:40 PM
    Hi everyone. Trying to test Twill prod settings locally. But I don't get the red "PROD" badge after setting the "APP_ENV" to "production" . Any advice , please. It still shows the green "Local" badge.
    i
    • 2
    • 4
  • p

    pboivin

    09/06/2021, 12:46 PM
    Hi @User, your local config could be cached. Have you tried
    php artisan config:clear
    ?
  • m

    Mho

    09/06/2021, 12:57 PM
    Hi @User and thanks for the quick reply. I just tried
    php artisan config:clear
    but still show the green
    LOCAL
    badge
  • m

    Mho

    09/06/2021, 1:00 PM
    Might it be because
    APP_URL
    is set to
    localhost
    ?
  • p

    pboivin

    09/06/2021, 1:07 PM
    I'm not 100% sure, but I don't think
    APP_URL
    is considered to determine the current environment. A quick test — with
    APP_ENV=production
    , what is the output when you run
    php artisan env
    ?
  • m

    Mho

    09/06/2021, 1:10 PM
    This is what I get
    Current application environment: production
  • p

    pboivin

    09/06/2021, 1:11 PM
    Ok good! This could be cached views then :
    php artisan view:clear
  • m

    Mho

    09/06/2021, 1:14 PM
    unfortunately, that didn't work either 😞
  • i

    Ivan Markov

    09/06/2021, 3:01 PM
    Hi. Who knows how to remove the slug, but leave a link with prefix
  • i

    ifox

    09/06/2021, 3:15 PM
    @Ivan Markov specify a
    customPermalink
    in
    formData
  • i

    Ivan Markov

    09/06/2021, 3:23 PM
    i tried to use this. But I don't yet understand how to save the locale switch
  • i

    ifox

    09/06/2021, 3:24 PM
    right, if you want to keep it, you'll need to do it differently, one sec
  • i

    ifox

    09/06/2021, 3:26 PM
    you can call
    getPermalinkBaseUrl()
    in
    customPermalink
    and append your route with a relative url
  • i

    ifox

    09/06/2021, 3:26 PM
    which in your case is nothing since it's the homepage
  • i

    ifox

    09/06/2021, 3:54 PM
    env-badge
  • d

    Daniel Jenikovský

    09/06/2021, 4:16 PM
    Hello, I'm currently working on a project in 2.5.1 and wanted to ask if there are way that I'm missing (or any plans to implement a way) to add extensions to the tiptap editor. The thing is I am using tailwindcss and I wanted to change the classes in the elements of the generated html as described in the tiptap documentation in Styling section. Thank you for any help.
  • i

    ifox

    09/06/2021, 4:17 PM
    Hi @Daniel Jenikovský you should be able to do that by overriding https://github.com/area17/twill/blob/2.x/frontend/js/components/WysiwygTiptap.vue
  • d

    Daniel Jenikovský

    09/06/2021, 4:22 PM
    I see, thank you for the info, sounds reasonable.
  • s

    sirhc

    09/06/2021, 10:43 PM
    hey @ifox I haven’t solved it as yet, quite a strange issue, I know im missing something somewhere, no i don’t think so that’s just an example i sliced out of the current data i had in the component for simplicity, prettier would’ve removed any syntactical errors like that anywho
  • p

    Philipp Grimm

    09/07/2021, 11:45 AM
    Hi, I have a Question about slugs. When there is a slug "xyz-2" for a specific Page in my DB it seems to bee impossible to set it to "xyz" for this page because of the getExistingSlug Logic in the HasSlug Trait. Is there any Solution for a Problem like this?
    i
    • 2
    • 8
  • i

    ifox

    09/07/2021, 12:45 PM
    hi @Philipp Grimm the record that is currently using "xyz" needs to be destroyed. I'm assuming it is still in the trash (soft deleted).
  • p

    Philipp Grimm

    09/07/2021, 1:14 PM
    there is no record using the xyz, only xyz-2 on the page the should get the xyz
1...868788...484Latest