Nechalon
04/27/2023, 8:24 AM@formField('multi_select', [])
? I cant setup the name
field for the multi_select
, it gives back table or view not found
error.MD
04/28/2023, 5:28 AM{ url, title, target }
values and a single @formField
ckmirafss
04/29/2023, 9:41 AMAbdullahi
05/02/2023, 10:10 AMelkex
05/02/2023, 12:02 PMradum
05/02/2023, 3:01 PMblocks
where blocks
.blockable_type
= 'oferteMasinis' and blocks
.blockable_id
= 94 and blocks
.blockable_id
is not null order by blocks
.position
asc where oferteMasinis is my table name but in the db i can see in the blockable_type the model name 'App\Models\OferteMasini'. what is the problem?AntonyPL
05/03/2023, 10:18 AMjefsev
05/03/2023, 2:29 PMAntonyPL
05/03/2023, 7:44 PMNechalon
05/05/2023, 3:57 PM@formField('repeater', ['type' => 'courseSections'])
, I checked if I use another, already existing/working repeater here, it displays, but not this one. I have setup the relationships.
I have a courseCategory module where I have some categories, and I want to display some courses in the courseCategory admin form (so, basically add courses to the categories as repeaters), so I made the courseSections module (this is the repeater module). I have setup belongsTo, belongsToMany and hasMany relationships, and also setup the repositories according to the documentation. But the courseSections repeater doesnt show on the admin form.Abdullahi
05/08/2023, 10:39 AMhttps://cdn.discordapp.com/attachments/811986149064441927/1105081466955780196/image.png▾
Scottnj
05/09/2023, 7:13 PMScottnj
05/09/2023, 10:59 PMRepeater::make()->type('carousel_item')
in my Block Component.
Where do I put the carousel_item file?
The documentation doesn't make this clear.emil
05/10/2023, 8:34 AMtzzep
05/10/2023, 10:57 AMScottnj
05/10/2023, 4:21 PMMedias::make()->name('main-image')
to a component block it creates the form field.
I am able to select an image in the backend UI, but I cannot figure out how to get it to render for the frontend.Scottnj
05/10/2023, 10:32 PMAn error occured trying to render:
View [site.blocks.app-heading] not found. in /var/www/html/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php
My "row" is very simple
php artisan twill:make:componentBlock row
BlockEditor::make()->name('content'),
{!! $renderData->renderChildren('content') !!}
emil
05/11/2023, 9:35 AMSelect::make()
->name('type_id')
->label('Type')
->options(
app()->make(TypeRepository::class)->listAll()->toArray()
),
elkex
05/12/2023, 12:48 PM!lost
05/12/2023, 11:11 PMphp
Radios::make()
->name('background')
->label('Hintergrund')
->inline()
->required()
->options(
Options::make([
Option::make('#2B2E34', 'Primär'),
Option::make('#C7BAAC', 'Sekundär'),
Option::make('#1D1D1B', 'Tertiär'),
])
)
);
crp87
05/14/2023, 12:36 PMTwillBlocks::registerPackageBlocksDirectory(
__DIR__ . '/Twill/Capsules/Pages/resources/views/twill/blocks'
);
But how can I server the "preview(s)" which are usually located in /resources/views/site/blocks ? twill 3.
and will there be a command or how do i need to adjust my commands, to generate twill resources directly inside my package>capsule?kalle
05/14/2023, 6:55 PMcrp87
05/15/2023, 5:46 AM$item->translations->first()->meta_title
but: $item->meta_title
dose not work. But seems like an overkill to execute an additional SQL for every required translation. Accessing them through getTranslationsArray() seems also not nice because i have to put some logic inside the view.
The package>capsule>model is generated with HasTranslations support and they also work properly on twill admin interface but when I try to access them individually on the page model ($item), they won't work. I can see the translations being loaded when dumping the $item with dd().
Did I just miss something?u1150432
05/16/2023, 9:37 AMu1150432
05/16/2023, 10:59 AMBlazinglyFast
05/16/2023, 11:37 AMDaniel C
05/17/2023, 2:03 PMVouga
05/17/2023, 2:30 PMcrp87
05/18/2023, 11:46 AMhttps://cdn.discordapp.com/attachments/811986149064441927/1108722261734731847/Bildschirmfoto_2023-05-18_um_13.42.29.png▾