-
Notifications
You must be signed in to change notification settings - Fork 3
YAML generators
Lukasz Sielski edited this page Apr 21, 2016
·
3 revisions
Fields in bold (or their combination, if few) are unique keys for type.
- code - string
- enabled - boolean
- default - boolean
Language:
-
code: en
enabled: true
default: true
-
code: pl
enabled: true
- name - string
- label - string
- acl - hashmap
Role:
-
name: member
label: Member
acl:
/: [get]
- email - string
- name - string
- roles - array of string (Role)
- password - string
- image - string
User:
-
email: john.doe@example.com
name: John Doe
password: unecrytpedDefaultPa$$word
roles:
- member
image: https://pbs.twimg.com/profile_images/679075823907831809/bJjXiFwm.jpg
- name - string
- label - string
TaxonomyType:
-
name: tag
label: Tag
- name - string
- type - string
- label - string
-
name: x-wing
label: X-Wing
type: tag
- name - string
- path - string
- thumb - string
- selectable - string
- props - hashmap
- type - string
One you can use to create new page. Uses selectable flag and thumb for choice popup.
Template:
-
name: blog template
path: ~/core/blogpost
thumb: /img/core/templates/blog.jpg
selectable: true
Template:
-
name: Hero
path: ~/core/block/hero
type: block
Both selectable and block tempaltes benefit from usage of properties. You can define available properites using props field:
Template:
-
name: Hero
path: ~/core/block/hero
type: block
props:
theme: string
- type - string
- route - string
- template - string
- layout - object
- javascripts - array
- stylesheets - array
- taxonomy - hashmap
- state - string
- props - hashmap
Content:
-
type: shared
route: contact-information
template: ~/core/partials/block/contact-information
layout:
type: Fields
left: |
# Riverside HQ
Enigma Marketing Service\n
The New Boathouse\n
Mill Lane\n
Maidenhead\n
[SL6 0AA](https://goo.gl/maps/fgvMiQdbdHy)
right: |
# Contact Us
[hello@enigma-marketing.co.uk](mailto:hello@enigma-marketing.co.uk)\n
[+44 (0) 1628 50 00 58](tel:+441628500058)\n
[@EnigmaMarketing](https://twitter.com/EnigmaMarketing)
Get Involved on GitHub or Follow @getlackey on twitter. Code licensed under Apache License v2.0.
Open sourced by Enigma 2015-2016