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

    Mouse83

    07/12/2022, 12:02 PM
    yet it does look like twill is trying to use them
  • h

    Harings Rob

    07/12/2022, 12:25 PM
    hey @Mouse83 what twill version are you using?
  • m

    Mouse83

    07/12/2022, 12:25 PM
    2.8.2
  • h

    Harings Rob

    07/12/2022, 12:26 PM
    And the error occurred at a certain change or from the start?
  • m

    Mouse83

    07/12/2022, 12:29 PM
    I`m digging through the commits, because app seemed to be working fine, and cant find the change that causing this. The admin views that fail, have not been touched. For example I have a fairly simple module called Cities, and it does what the name says its just a list of cities, almost vanilla module from CLI
  • h

    Harings Rob

    07/12/2022, 12:33 PM
    other modules do not have this issue?
  • m

    Mouse83

    07/12/2022, 12:33 PM
    I just created a plain module with CLI and got the same error
  • m

    Mouse83

    07/12/2022, 12:35 PM
    No, some seem to be working fine
  • h

    Harings Rob

    07/12/2022, 12:35 PM
    I cannot seem reproduce the issue on 2.8.2
  • h

    Harings Rob

    07/12/2022, 12:38 PM
    (Not saying there is no issue, just hard to reproduce and might be something code base specific that causes it)
  • m

    Mouse83

    07/12/2022, 12:43 PM
    though nut, thank you for checking
  • h

    Harings Rob

    07/12/2022, 12:44 PM
    I would for sure maybe try to use 2.8.8 if the issue is still there.
  • h

    Harings Rob

    07/12/2022, 12:51 PM
    @Mouse83 do you have twill files in the resources/vendor folder?
  • m

    Mouse83

    07/12/2022, 12:52 PM
    no it is classic composer installation in vendor folder
  • d

    dedli

    07/12/2022, 1:46 PM
    Hi guys ) How can I update translated field in translated table not from module? If it is main language it is update automaticaly by field name
    Copy code
    Model::query()->where()->update([title=>##newValue##])
    , but if I need another language?
  • k

    kalle

    07/12/2022, 2:09 PM
    If you dont need it dynamic without headache you can use
    DB
    facade on your
    module_translations
    table to update specific rows.
  • d

    dedli

    07/12/2022, 2:22 PM
    Ok, thanks! I thought maybe there is some magic in model or repository )
  • m

    Mouse83

    07/12/2022, 4:10 PM
    I bumped the version to 2.8.8 but issues stayed there
  • m

    Mouse83

    07/12/2022, 4:10 PM
    it turned out that problem came from block that had a nested block
  • m

    Mouse83

    07/12/2022, 4:11 PM
    I have a block "client_opinons_section" which form had a nested block field
  • m

    Mouse83

    07/12/2022, 4:11 PM
    Copy code
    @formField('block_editor', [
        'name' => 'client_opinion_section_tiles',
        'blocks' => [
            'client_opinion_tile',
        ]
    ])
  • m

    Mouse83

    07/12/2022, 4:13 PM
    removing this piece of code from views\admin\blocks\client_opinion_section.blade.php
  • m

    Mouse83

    07/12/2022, 4:13 PM
    made the error go away
  • m

    Mouse83

    07/12/2022, 4:14 PM
    alternatively what made things work was adding to the broken admin views generic block editor
  • m

    Mouse83

    07/12/2022, 4:14 PM
    Copy code
    @formField('block_editor', [
            'label' => 'Page contents',
            'translated' => true,
        ])`
  • m

    Mouse83

    07/12/2022, 4:14 PM
    I found this out by rolling back commit by commit, and checking what works
  • h

    Harings Rob

    07/12/2022, 4:41 PM
    That's interesting because nested blocks never worked.
  • h

    Harings Rob

    07/12/2022, 4:41 PM
    (before 3.x)
  • u

    24C Felix

    07/12/2022, 6:08 PM
    Hi! Is there any possibility to add media file in settings sections? E.g. for a global CTA background image.
  • h

    Harings Rob

    07/13/2022, 6:02 AM
    Hey @24C Felix I think it is not possible. We usually recommend to use a Singleton for more complex settings.
1...361362363...484Latest