A very easy to use blueprint reader for Kirby CMS.
Version 0.4 - Changelog
Features / Supports
- Global field definitions
- Global field extends
- Translated fields
- Structure fields
- Simple array walking
- Caching
If you have a project blueprint, you can get the title field type by this one-liner:
echo b::blueprint('project', 'fields/title/type');
If you want the complete blueprint data array, you can do that like this:
$data = b::blueprint('project');
print_r($data);
These are the methods you can use. Read more about them if you need more advanced configurations.
- b::blueprint($name, $steps, $options = array()) Get the blueprint data array by template.
- b::read($filepath, $steps, $options = array()) Get the blueprint data array by filepath.
- b::file($name, $options = array()) Get the blueprint filepath by template.
- b::parse($data, $steps, $options) Get the parsed blueprint data array by blueprint data array.
- Kirby 2.4.1+
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.
It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.