i know i can get the blueprint data if i create a pageobject.
but in my case its not so easy to get a proper parent every time (rules for allowed templates etc). so i would like to read the blueprint data without a page object. is that possible? this does not seem to work as expected.
$blueprint = new \Kirby\Cms\Blueprint([
'model' => 'mytemplate'
]);
var_dump($blueprint);
since the blueprints come from various plugins i can not simply read the yaml file.
the kirby()->blueprints() crawls all files even from plugins but only returns their names. i could copy that code but hoped there would be some prettier way…
almost. see the original blueprints method i linked. one needs blueprints from extensions AND root(‘blueprints’), filtering by type,…
i am just wondering how to create an blueprint instance without a page/file object based on the blueprints the app know about? sure i could create an blueprint instance and forward a yaml file i searched for myself but… no very convenient.