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

    EpicKau

    02/11/2023, 9:52 PM
    yes, block controller (TwillBlockComponent)
  • e

    EpicKau

    02/12/2023, 2:28 PM
    hmm i think something is broken 😄 currently no block saves / get data. the post request has all fields but then it gets lost
  • i

    ifox

    02/12/2023, 2:42 PM
    Just checking: do you have HandleBlocks and HasBlocks traits on your repository and model respectively?
  • e

    EpicKau

    02/12/2023, 3:05 PM
    yes
  • e

    EpicKau

    02/12/2023, 3:09 PM
    it must be something different, now page inputs dont save anymore (without the blockeditor)
  • i

    ifox

    02/12/2023, 3:23 PM
    did you update your twill build after your last composer update?
  • e

    EpicKau

    02/12/2023, 7:38 PM
    fresh install, two block components with same fields.
    Copy code
    public function getForm(): Form
        {
            return Form::make([
                Columns::make()
                    ->left([
                        Input::make()->name('title')
                    ])
                    ->right([
                        Wysiwyg::make()->name('text')
                    ]),
                Input::make()->name('test')
            ]);
        }
    Copy code
    public function getForm(): Form
        {
            return Form::make([
                Input::make()->name('title'),
                Wysiwyg::make()->name('text')
            ]);
        }
    database:
    Copy code
    "blocks": [
            {
                "blocks": [],
                "browsers": [],
                "content": {
                    "text": "<p>text</p>",
                    "title": "title"
                },
                "editor_name": "default",
                "id": 1676230583471,
                "is_repeater": false,
                "medias": [],
                "type": "a17-block-app-test"
            },
            {
                "blocks": [],
                "browsers": [],
                "content": {
                    "test": "test"
                },
                "editor_name": "default",
                "id": 1676230585590,
                "is_repeater": false,
                "medias": [],
                "type": "a17-block-app-column"
            }
        ],
  • e

    EpicKau

    02/12/2023, 7:38 PM
    strange is, that the title field get the value from first title field
  • e

    EpicKau

    02/13/2023, 7:20 PM
    I found the bug
  • e

    EpicKau

    02/13/2023, 7:20 PM
    column field dont have a block id
  • j

    jefsev

    02/13/2023, 7:27 PM
    Everything is in dutch but the titles are taken from the EN lang. And if i don't give them english title there are none and i cannot click them to open them. Something else, i cannot delete usint the 3 dots only when selecting on the left side and using the bulk dropdown to delete.
  • i

    ifox

    02/13/2023, 7:42 PM
    @jefsev delete using the 3 dots is fixed on rc4
  • j

    jefsev

    02/13/2023, 7:42 PM
    nice 🙂
  • j

    jefsev

    02/13/2023, 7:42 PM
    Is it pretty save to upgrade to rc4?
  • i

    ifox

    02/13/2023, 7:42 PM
    Regarding the locale, as I mentioned last week, your first locale in translatable.php should match your twill and app locale
  • i

    ifox

    02/13/2023, 7:42 PM
    yes
  • j

    jefsev

    02/13/2023, 7:45 PM
    Ok ill check that again, i thought i changed that to default NL But maybe i forgot a place
  • i

    ifox

    02/13/2023, 7:53 PM
    Column is an artificial field though, it doesn't have any value to save for itself. It's only rendering the fields wrapped in elements with css classes and the form submission would result in the same thing wether you use columns or not
  • e

    EpicKau

    02/13/2023, 7:56 PM
    @ifox normals fields
    Copy code
    <input data-v-9edd5ab6="" data-v-0d108f70="" type="text" placeholder="" name="blocks[5][test]" id="blocks[5][test]-1676318057641" autocomplete="on">
    fields in columns:
    Copy code
    <input data-v-9edd5ab6="" data-v-0d108f70="" type="text" placeholder="" name="title" id="title-1676318060913" autocomplete="on">
    there is no "block[]" index
  • i

    ifox

    02/13/2023, 8:04 PM
    ok I see what you mean now, sorry I didn't get that's what you meant at first
  • i

    ifox

    02/13/2023, 8:05 PM
    definitely sounds like a bug
  • e

    EpicKau

    02/13/2023, 8:05 PM
    no problem^^
  • j

    jefsev

    02/13/2023, 8:18 PM
    I have multiple layers. Like: /en/knowledge-base/faq-slug/ /en/knowledge-base/faq-slug/faq-page-title but twill generates the faq-page-title slug as follows: /en/faq-slug/knowledge-base/faq-page-title It switches faq-slug and knowledge-base for the two under Frequently asked questions Any idea why? Maybe something is going wrong when using an empty permalinkbase? protected $permalinkBase = '';
  • e

    EpicKau

    02/13/2023, 8:29 PM
    @ifox should I open a git issue?
  • b

    BA7YA

    02/14/2023, 12:47 PM
    Hi guys! Are you planning to implement pagination for Sortable models?
  • j

    jefsev

    02/14/2023, 4:59 PM
    Hi, i get the following error when using laravel scout:
    Copy code
    Trait method Laravel\Scout\Searchable::usesSoftDelete has not been applied as App\Models\Page::usesSoftDelete, because of collision with A17\Twill\Models\Behaviors\HasNesting::usesSoftDelete
  • j

    jefsev

    02/14/2023, 5:53 PM
    use Laravel\Scout\Searchable; Adding Searcable from scout to a model results in a http 500 error when trying to create a post
  • i

    ifox

    02/14/2023, 6:02 PM
    Interesting, that's not our experience, we have plenty of twill sites with scout
  • i

    ifox

    02/14/2023, 6:02 PM
    could be only affecting models that use HasNesting
  • i

    ifox

    02/14/2023, 6:04 PM
    Happy to if you have a solution for it, as I'm really not sure how a listing that can be reordered with drag and drop could be paginated? How would you move a record from a page to another?
1...466467468...484Latest