kirby-deprecated-plugins / kirby-blueprint-reader

Kirby Blueprint Reader for Kirby CMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kirby Blueprint Reader

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

Basic examples

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);

Methods

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.

Table of contents

Requirements

Disclaimer

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.

License

MIT

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.

Credits

About

Kirby Blueprint Reader for Kirby CMS

License:MIT License


Languages

Language:PHP 100.0%