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

    ifox

    02/11/2023, 1:06 PM
    there's no way for line 169 to execute if that variable is not true
  • j

    joshyhud

    02/11/2023, 1:07 PM
    ok
  • j

    joshyhud

    02/11/2023, 1:07 PM
    what i will do is amend the .env to false so its verbosely set
  • i

    ifox

    02/11/2023, 1:10 PM
    one thing I'm curious about is why you are building Twill on the server. You can push the Twill build to your git repository. It doesn't change unless you're updating Twill so unless you make sure that the server is using exactly the same node version you can't guarantee that the build is going to be the same as your local. You also don't need to build at all if you're not using custom Vue components.
    php artisan twill:update
    is sufficient to get the new build in that case.
  • j

    joshyhud

    02/11/2023, 1:12 PM
    ok that makes sense, So if i have managed to get this working locally and deploy to git and then deploy through git actions to our server we wont need to rebuild at all
  • i

    ifox

    02/11/2023, 1:12 PM
    exactly
  • j

    joshyhud

    02/11/2023, 1:12 PM
    however we have chnaged the version from 2.6 to 2.12.4 due to updating to laravel 9
  • j

    joshyhud

    02/11/2023, 1:13 PM
    which is a large jump
  • i

    ifox

    02/11/2023, 1:14 PM
    it's a large jump but not on a major version so there shouldn't be anything breaking as long as you run artisan twill:update after composer update
  • j

    joshyhud

    02/11/2023, 1:14 PM
    ok
  • j

    joshyhud

    02/11/2023, 1:14 PM
    thank you for your help
  • j

    joshyhud

    02/11/2023, 1:15 PM
    i will get dev to try this out and come back inf any other questions
  • j

    joshyhud

    02/11/2023, 1:41 PM
    hi @ifox we are still now getting this error after checking the files mentioned before all files match and we have this working locally on our own machines with no errors. on the cms front end we see this error in the console and also this on the page.
  • h

    Harings Rob

    02/11/2023, 1:44 PM
    Config cached?
  • j

    joshyhud

    02/11/2023, 1:46 PM
    ill try and clear it
  • i

    ifox

    02/11/2023, 1:47 PM
    could be views cache too. I'd just go for a optimize:clear
  • j

    joshyhud

    02/11/2023, 1:49 PM
    hi both, i have tried cache and views and optimize clear and all cleared but still the same issue
  • j

    joshyhud

    02/11/2023, 1:49 PM
    no issues with the exact setup on local machine but on server its not liking it
  • j

    joshyhud

    02/11/2023, 4:57 PM
    I managed to find the issue. There is one file being modified outside of the main layouts and a line of code is missing for the publishDateDisplayFormat in the amended file but exists in the vendor. I have now added the code that was missing and this is now working. Thanks @ifox and @Harings Rob for your help
  • e

    EpicKau

    02/11/2023, 7:23 PM
    @ifox is it possible to change the layout of the form fields in edit view? like 50/50 or tabs?
  • i

    ifox

    02/11/2023, 7:41 PM
    @EpicKau yes you can use columns. Are you on Twill 2 or 3?
  • e

    EpicKau

    02/11/2023, 7:43 PM
    3
  • i

    ifox

    02/11/2023, 7:44 PM
    https://github.com/area17/twill/blob/3.x/docs/content/1_documentation/3_modules/8_form-builder.md#columns-field
  • e

    EpicKau

    02/11/2023, 7:45 PM
    thanks
  • e

    EpicKau

    02/11/2023, 8:13 PM
    hmm am I doing it wrong? The fields don't get value / updated and in preview I receive
    Copy code
    this.editor.setContent is not a function
  • i

    ifox

    02/11/2023, 9:11 PM
    you have duplicate field names
  • i

    ifox

    02/11/2023, 9:12 PM
    I guess you want to remove the ones outside the columns as they are the same?
  • e

    EpicKau

    02/11/2023, 9:19 PM
    only for testing, same result without the bottom ones
  • i

    ifox

    02/11/2023, 9:49 PM
    alright. and they work fine outside of columns?
  • i

    ifox

    02/11/2023, 9:49 PM
    is this in a block or module controller?
1...465466467...484Latest