elkex
12/08/2022, 3:16 PMifox
12/08/2022, 5:23 PMgetFormFields
dakaalim
12/09/2022, 2:48 AMTeam
, within this block, you can add repeater blocks Team Item
. On the frontend, I want use div tags to wrap around all the repeater blocks, but how do you know detect when to render the opening and ending tag?dakaalim
12/09/2022, 2:51 AMTeam Item
repeater blocks, so I can style a css container around it.dakaalim
12/09/2022, 2:55 AM@if($loop->first)
or @if($loop->last)
on site\blocks\team-item.blade.php
but it did not work as expected.dakaalim
12/09/2022, 3:01 AMsite\layouts\block.blade.php
but that's not what I wantKendrickt
12/09/2022, 4:59 AMpublic function getForm(TwillModelContract $model): Form
{
$form = parent::getForm($model);
$form[] = Input::make()->name('description')->label('Description')->translatable();
$form[] = BlockEditor::make()->blocks(['expand_collapse']);
return $form;
}
expand_collapse block
@twillBlockTitle('Expand and Collapse')
@twillBlockIcon('text')
<x-twill::input name="header" label="Header" :maxlength="100" :required="true" />
<x-twill::block-editor
:blocks="['collapse_block']"
/>
BA7YA
12/09/2022, 10:13 AMifox
12/10/2022, 12:38 PMBA7YA
12/10/2022, 1:03 PMelkex
12/12/2022, 10:23 AMelkex
12/12/2022, 11:15 AMelkex
12/12/2022, 12:55 PMelkex
12/12/2022, 1:38 PMifox
12/12/2022, 1:39 PMelkex
12/12/2022, 1:40 PMifox
12/12/2022, 1:44 PMifox
12/12/2022, 1:45 PMifox
12/12/2022, 1:46 PMHarings Rob
12/12/2022, 2:11 PMifox
12/12/2022, 3:16 PMelkex
12/13/2022, 1:14 PMHarings Rob
12/13/2022, 1:15 PMelkex
12/13/2022, 1:16 PMelkex
12/13/2022, 1:16 PMHarings Rob
12/13/2022, 1:17 PMelkex
12/13/2022, 1:18 PMelkex
12/13/2022, 1:19 PMelkex
12/13/2022, 1:19 PMelkex
12/13/2022, 1:22 PM