ifox
02/22/2022, 2:39 PMrenderBlocks(false) outside of previews, and for the preview to work, set twill.block_editor.block_preview_render_childs to false. Then inside the block, you can use $block->childrenUtuyutuF
02/22/2022, 2:45 PMrenderBlocks(false) in ?ifox
02/22/2022, 2:46 PMifox
02/22/2022, 2:47 PMtwill.block_editor.block_preview_render_childsifox
02/22/2022, 2:47 PMrenderBlocksifox
02/22/2022, 2:47 PMifox
02/22/2022, 2:48 PMifox
02/22/2022, 2:48 PM$block->childrenifox
02/22/2022, 2:49 PMifox
02/22/2022, 2:49 PMifox
02/22/2022, 2:50 PMUtuyutuF
02/22/2022, 2:52 PMzlem
02/22/2022, 5:22 PMHarings Rob
02/22/2022, 5:29 PMtfilos
02/22/2022, 5:30 PM$block->image('field', 'crop', ['w'=>75]); for example, is it possible to call this without a crop? To get the original image aspect ratio but then still resize it? I've tried a bunch of permutations on this with no successtfilos
02/22/2022, 5:35 PMifox
02/22/2022, 5:36 PMpboivin
02/22/2022, 5:37 PMifox
02/22/2022, 5:37 PMgetUrl from the image service manuallytfilos
02/22/2022, 6:16 PMgetURL call though to simpify thisifox
02/22/2022, 6:18 PMtwill.block_editor.crops?tfilos
02/22/2022, 6:20 PMtfilos
02/22/2022, 6:22 PMtwill.php, correct?ifox
02/22/2022, 6:22 PMtfilos
02/22/2022, 6:26 PMreturn [
'block_editor' => [
'crops' => [
'image' => [
'free' => [
[
'name' => 'free',
'ratio' => 0,
],
],
],
],
],tfilos
02/22/2022, 6:27 PMifox
02/22/2022, 6:27 PMimage key also used at the model level and one is taking over the otherifox
02/22/2022, 6:27 PMifox
02/22/2022, 6:27 PMtfilos
02/22/2022, 6:28 PM$mediasParams set, but the odd thing is that I have a similar no-crop option in there. That could be a caching thing although I'm just on valet right now