CrafterCMS Blueprint Descriptor
The craftercms-plugin.yaml
file contains information for use in CrafterCMS. This descriptor file contains
information about your extension, such as the license, the versions of CrafterCMS supported, and other
configurations and metadata. In this section, we’ll take a look at a blueprint descriptor file.
Below is a sample descriptor file for a blueprint:
1# This file describes a blueprint for use in CrafterCMS
2
3# The version of the format for this file
4descriptorVersion: 2
5
6# Describe the plugin
7plugin:
8 type: blueprint
9 id: org.craftercms.blueprint.empty
10 name: Empty Blueprint
11 tags:
12 - blueprint
13 - website
14 version:
15 major: 1
16 minor: 0
17 patch: 0
18 description: |
19 Simple empty blueprint
20 website:
21 name: Empty Blueprint
22 url: https://craftercms.org
23 media:
24 screenshots:
25 - title: Home Page
26 description: Screenshot of the homepage
27 url: /studio/static-assets/images/blueprints/empty/bp_empty.png
28 developer:
29 company:
30 name: CrafterCMS
31 email: info@craftercms.com
32 url: https://craftercms.com/
33 license:
34 name: MIT
35 url: https://opensource.org/licenses/MIT
36 crafterCmsVersions:
37 - major: 4
38 minor: 0
39 patch: 0
40 crafterCmsEditions:
41 - community
42 - enterprise
Here are some things to note in the descriptor file:
Field |
Required |
Description |
---|---|---|
descriptorVersion |
✓ |
The version of the format for this file which is currently 2 |
plugin.type |
✓ |
Set the value to |
plugin.id |
✓ |
A unique Id that is meaningful/recognizable to people who will be using the blueprint |
plugin.name |
✓ |
The name displayed in the Crafter Marketplace. |
plugin.version |
✓ |
The version number for the blueprint |
plugin.description |
Contains a short description of the blueprint and is displayed underneath the blueprint name in |
|
plugin.website.url |
Can be a page for more information on your blueprint or for announcing updates, reporting bugs, etc. |
|
plugin.media.url |
The path to look for a representative image of the blueprint. |
|
plugin.license |
The license supported by the blueprint |
|
plugin.crafterCmsVersions |
✓ |
Contains the CrafterCMS version/s that the plugin is compatible with |
Note
For the images to be used for the screenshots
in the craftercms-plugin.yaml
file, we recommend
using images with approximately a 4:3
aspect ratio (width to height), such as an image sized at 1200x800