Grav ver.1.2.4
Thats one of my latest failed attemps.
Nothing changes in the book-page creation form .
title: Book
'@extends':
type: default
context: blueprints://pages
form:
validation:loose
fields:
tabs: # that field is a tabs collection
type: tabs
active: 1
fields: # each of its field is tab type.
content:
type: tab
title: aha
fields:
header.title
type: text
label: OOOOFOFOFOFOF
---
title: Book
'@extends':
type: default
context: blueprints://pages
form:
fields:
tabs: # that field is a tabs collection
type: tabs
active: 1
fields: # each of its field is tab type.
content:
type: tab
title: aha
fields:
header.title:
type: text
label: OOOOFOFOFOFOF
I wish there was a faster way to learn that.
One drawback to yaml blueprints it how sensitive they are to tabs accidentaly inserted. Sth that my emacs do after hitting return to change line.
Feel free to provide some examples in the cookbook via a pull request in the docs. That way more users will have some examples of achieving complex blueprints.