Bibo
06/13/2021, 12:18 AMBibo
06/13/2021, 12:59 AMRayderxx
06/14/2021, 8:27 AM$relatedElement->defaultCmsImage(['w' => 100, 'h' => 100])
//should be better with :
$relatedElement->defaultCmsImage(['w' => 100, 'h' => 100, 'fit' => 'crop'])
ifox
06/14/2021, 10:09 AMifox
06/14/2021, 10:10 AMShiftless
06/14/2021, 10:38 AM@include('admin.block.imageBlock, ['name' => 'image', ...some more vars...])
now i have to add the annotation to the ImageBlock block to make it work. But then the annotations are getting rendered as normal text. What am i doing wrong? Is there some speciality to use blocks nested in blocks?ifox
06/14/2021, 1:06 PMDmi3yy
06/14/2021, 5:25 PMDmi3yy
06/14/2021, 6:33 PMShiftless
06/15/2021, 7:42 AMdomihagen
06/15/2021, 8:51 AMShiftless
06/15/2021, 8:52 AMdomihagen
06/15/2021, 8:53 AMShiftless
06/15/2021, 9:02 AMphp artisan config:clear
or a php artisan twill:build
i had to run these after the update. we got empty blocks before i ran these commands.domihagen
06/15/2021, 9:21 AMdomihagen
06/15/2021, 9:28 AM'block_editor' => [
'block_views_path' => 'components.blocks',
'block_single_layout' => 'layouts.block-preview',
'block_preview_render_childs' => false,
],
ifox
06/15/2021, 9:49 AMdomihagen
06/15/2021, 9:50 AMShiftless
06/15/2021, 10:02 AMRayderxx
06/15/2021, 10:55 AMRayderxx
06/15/2021, 10:57 AM// in the preview the blockable relaion is not loaded
<div class=" resource-{{$block->blockable->getTable()}}
</div>
ifox
06/15/2021, 2:05 PMRayderxx
06/15/2021, 2:22 PMifox
06/15/2021, 2:35 PMifox
06/15/2021, 2:35 PMRayderxx
06/15/2021, 5:16 PMifox
06/15/2021, 5:37 PMvoid
06/17/2021, 3:37 PMifox
06/17/2021, 4:23 PMRoute::module('cars')
in admin.php
?void
06/17/2021, 4:58 PM