Unfortunately I get an InvalidArgumentException - Invalid section model when trying to get a section by name. Tabs and fields work flawlessly.
Do You have any hint?
Thank You!
I don’t know if this helps, the cookbook part says: " This returns a Kirby\Cms\Section object, which you can further query.", but I wouldn’t know how to modify the new Blueprint accordingly
$blueprint = new Kirby\Cms\PageBlueprint(array_merge(['model' => $page], Kirby\Cms\Blueprint::load('pages/album')));
dump($blueprint->section('images'));
While this seems to work, I guess the idea here is to actually pass the page object that belongs to the blueprint, but then you might as well call the blueprint() method on the actual page (but querying the complete site()->index() just to get a value from a blueprint seems to be overkill.
Yes indeed, that’s why I didn’t feel very comfortable with my first try.
Your solution works very well for my use case.
Again, thank You as always for Your quick reply! Can’t count, how many times Your support in this forum has helped me solving some problems! <3