Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.51 KB

blueprints.md

File metadata and controls

42 lines (28 loc) · 1.51 KB

Panel 2 - Blueprints

Special characters

To allow special characters like quotes, always wrap the whole block with quotes and then escape the quotes inside it with \.

fields:
  my_field:
    title: "A field title with \"Quotes\""
    type: text

Field definition subfolders

You can create global field definitions in subfolders. It's especially good if you have many global field definitions and it's starting to be messy.

fields:
  myfield: subfolder/definition

Get all blueprints

Especially for plugins it can sometimes be useful to be able to get all the blueprints. Let's see how that is done.

$blueprints = kirby()->get('blueprint');
print_r($blueprints);

Sources