Skip to content

Commit

Permalink
Update blueprint stubs to use sections
Browse files Browse the repository at this point in the history
  • Loading branch information
robdekort committed Apr 4, 2023
1 parent d52b186 commit 69e6002
Show file tree
Hide file tree
Showing 12 changed files with 1,220 additions and 1,094 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## v2.0 (unreleased)

### What's new
- Statamic v4 support including group support when creating/installing page builder blocks and/or sets. #12 by @robdekort
- Statamic v4 support including group support when creating/installing page builder blocks and/or sets and all stub blueprints have been updated to use the new blueprint sections. #12 by @robdekort

## v1.27 (2023-03-23)

Expand Down
98 changes: 51 additions & 47 deletions resources/stubs/collection_blueprint_private.yaml.stub
Original file line number Diff line number Diff line change
@@ -1,55 +1,59 @@
title: {{ collection_name }}
sections:
tabs:
main:
display: Main
fields:
sections:
-
handle: title
field:
type: text
required: true
input_type: text
localizable: true
listable: true
display: Title
validate:
- required
display: General
fields:
-
handle: title
field:
type: text
required: true
input_type: text
localizable: true
listable: true
display: Title
validate:
- required
-
import: page_builder
display: 'Page builder'
instructions: 'Build your page by using various predefined content models.'
fields:
-
import: page_builder
sidebar:
display: Sidebar
fields:
sections:
-
handle: meta
field:
type: section
instructions: 'This entry''s meta data.'
display: Meta
-
handle: slug
field:
type: slug
required: true
localizable: true
generate: true
listable: hidden
display: Slug
validate:
- required
-
handle: date
field:
type: date
listable: true
required: true
validate:
- required
display: Date
mode: single
time_enabled: false
time_required: false
earliest_date: '2021-01-01'
full_width: false
inline: false
columns: 1
rows: 1
display: Meta
instructions: "This entry's meta data."
fields:
-
handle: slug
field:
type: slug
localizable: true
generate: true
listable: hidden
display: Slug
validate:
- required
-
handle: date
field:
type: date
listable: true
required: true
validate:
- required
display: Date
mode: single
time_enabled: false
time_required: false
earliest_date: '2021-01-01'
full_width: false
inline: false
columns: 1
rows: 1
98 changes: 51 additions & 47 deletions resources/stubs/collection_blueprint_private_dated.yaml.stub
Original file line number Diff line number Diff line change
@@ -1,55 +1,59 @@
title: {{ collection_name }}
sections:
tabs:
main:
display: Main
fields:
sections:
-
handle: title
field:
type: text
required: true
input_type: text
localizable: true
listable: true
display: Title
validate:
- required
display: General
fields:
-
handle: title
field:
type: text
required: true
input_type: text
localizable: true
listable: true
display: Title
validate:
- required
-
import: page_builder
display: 'Page builder'
instructions: 'Build your page by using various predefined content models.'
fields:
-
import: page_builder
sidebar:
display: Sidebar
fields:
sections:
-
handle: meta
field:
type: section
instructions: 'This entry''s meta data.'
display: Meta
-
handle: slug
field:
type: slug
required: true
localizable: true
generate: true
listable: hidden
display: Slug
validate:
- required
-
handle: date
field:
type: date
listable: true
required: true
validate:
- required
display: Date
mode: single
time_enabled: false
time_required: false
earliest_date: '2021-01-01'
full_width: false
inline: false
columns: 1
rows: 1
display: Meta
instructions: "This entry's meta data."
fields:
-
handle: slug
field:
type: slug
localizable: true
generate: true
listable: hidden
display: Slug
validate:
- required
-
handle: date
field:
type: date
listable: true
required: true
validate:
- required
display: Date
mode: single
time_enabled: false
time_required: false
earliest_date: '2021-01-01'
full_width: false
inline: false
columns: 1
rows: 1
102 changes: 67 additions & 35 deletions resources/stubs/collection_blueprint_public.yaml.stub
Original file line number Diff line number Diff line change
@@ -1,43 +1,75 @@
title: {{ collection_name }}
sections:
tabs:
main:
display: Main
fields:
-
handle: title
field:
type: text
required: true
input_type: text
localizable: true
listable: true
display: Title
validate:
- required
-
import: page_builder
sections:
-
display: General
fields:
-
handle: title
field:
type: text
required: true
input_type: text
localizable: true
listable: true
display: Title
validate:
- required
-
display: 'Page builder'
instructions: 'Build your page by using various predefined content models.'
fields:
-
import: page_builder
seo:
display: SEO
fields:
sections:
-
display: Basic
instructions: 'Basic SEO settings.'
fields:
-
import: 'statamic-peak-seo::seo_basic'
-
display: Advanced
instructions: 'Advanced SEO settings.'
fields:
-
import: 'statamic-peak-seo::seo_advanced'
-
import: statamic-peak-seo::seo
display: 'Open Graph'
instructions: 'Open Graph meta tags for social sharing.'
fields:
-
import: 'statamic-peak-seo::seo_open_graph'
-
display: Sitemap
instructions: 'Sitemap configuration.'
fields:
-
import: 'statamic-peak-seo::seo_sitemap'
-
display: 'JSON-ld Schema'
instructions: 'Custom JSON-ld schema objects.'
fields:
-
import: 'statamic-peak-seo::seo_jsonld'
sidebar:
display: Sidebar
fields:
-
handle: meta
field:
type: section
instructions: 'This entry''s meta data.'
display: Meta
-
handle: slug
field:
type: slug
required: true
localizable: true
generate: true
listable: hidden
display: Slug
validate:
- required
sections:
-
display: Meta
instructions: "This entry's meta data."
fields:
-
handle: slug
field:
type: slug
localizable: true
generate: true
listable: hidden
display: Slug
validate:
- required
Loading

0 comments on commit 69e6002

Please sign in to comment.