I use the layout functionality and inside, I use blocks. Let’s say I am on page A and would like to access a block field value of page B? Is this somehow possible?
I started by trying
$kirby->page('B')->layout()->toLayouts() but then I somehow got lost and couldn’t figure out a way to retrieve a single block field value.
The only idea I have right now is a foreach loop over all returned layouts and blocks. However, this is a bit a heavy load for only retrieving a single value. Somehow, I think it should be possible to directly access a block field value, maybe by the block’s ID?
Any ideas appreciated