Skip to content

Instantly share code, notes, and snippets.

@Chalkin
Created July 17, 2019 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chalkin/215685505884c1af14ebe0f452b1607d to your computer and use it in GitHub Desktop.
Save Chalkin/215685505884c1af14ebe0f452b1607d to your computer and use it in GitHub Desktop.
sections:
main:
display: Main
fields:
sections:
type: replicator
display: Sections
sets:
logo_slider:
display: 'Logo Slider'
fields:
logos:
type: assets
restrict: false
folder: /
container: image_with_link
display: Logos
max_files: 15
video_content:
display: 'Video with content'
fields:
parallax_image:
type: assets
restrict: false
folder: /
container: main
display: 'Parallax Image'
max_files: 1
video_poster:
type: assets
restrict: false
folder: /
container: main
display: 'Video Poster'
max_files: 1
youtube_id:
type: text
display: 'Youtube ID'
validate: text|required
headline:
type: text
display: Headline
validate: text
sub_headline:
type: text
display: 'Sub Headline'
body:
display: Content
type: markdown
cheatsheet: true
restrict_assets: false
btn_primary:
button_type: button
type: button
display: 'Button Primary'
btn_secondary:
button_type: button
type: button
display: 'Button Primary'
something:
options:
ddd: dd
dd: dd
type: select
display: Something
extended_content:
display: 'Extended Content'
fields:
body:
buttons:
- h2
- h3
- h4
- h5
- h6
- bold
- italic
- underline
- strikethrough
- unorderedlist
- orderedlist
- removeformat
- quote
- superscript
- subscript
- anchor
- assets
- code
style: sans
spellcheck: true
allow_source: true
allow_internal_links: true
link_noopener: false
link_noreferrer: false
target_blank: true
semantic_elements: true
container: main
folder: /
restrict_assets: false
type: bard
display: Bard
sets:
quote:
fields:
text:
type: text
cite:
type: text
image:
fields:
image:
type: assets
container: main
folder: img
max_files: 1
alignment:
type: select
default: left
options:
left: Left
center: Center
right: Right
subscribe_box:
display: 'Subscribe Box'
fields:
background:
type: partial
fieldset: flexible_section_background
headline:
type: text
display: Headline
content:
cheatsheet: true
restrict_assets: false
type: markdown
display: Content
button:
button_type: submit
css_classes: 'btn-xs white'
type: button
display: Button
simple_content:
display: 'Simple Content'
fields:
headline:
type: partial
fieldset: flexible_headline
background:
type: partial
fieldset: flexible_section_background
text_alignment:
options:
left: Left
center: Center
right: Right
justify: Justify
type: select
width: 50
display: 'Text alignment'
default: left
image_position:
options:
left: Left
right: Right
type: select
width: 50
display: 'Image Position'
default: right
content:
cheatsheet: true
restrict_assets: false
type: markdown
display: Content
image:
container: main
folder: /
restrict: false
max_files: 1
type: assets
display: Image
items_slider:
display: 'Item Slider'
fields:
headline:
type: partial
fieldset: flexible_headline
background:
type: partial
fieldset: flexible_section_background
slides:
type: replicator
sets:
slideitem:
display: 'Slide Item'
fields:
icon_class:
type: text
display: 'Icon Class'
title:
type: text
display: Title
localizable: true
description:
cheatsheet: false
restrict_assets: false
type: markdown
display: Description
localizable: true
link:
max_items: 1
type: pages
display: Link
grid_table:
display: 'Grid Table'
fields:
headline:
type: partial
fieldset: flexible_headline
description:
type: text
display: Description
grid:
type: replicator
sets:
griditem:
display: 'Grid Item'
fields:
icon_class:
type: text
display: 'Icon Class'
title:
type: text
display: Title
description:
cheatsheet: false
restrict_assets: false
type: markdown
display: Description
link:
max_items: 1
type: pages
display: Link
portfolio:
display: Portfolio
instructions: 'Manso Portfolio Grid'
fields:
headline:
type: partial
fieldset: flexible_headline
background:
type: partial
fieldset: flexible_section_background
items:
sets:
item:
display: item
fields:
headline:
type: text
width: 50
display: Headline
icon_class:
type: text
width: 50
display: 'Icon class'
validate: alpha
image:
container: main
folder: /
restrict: false
max_files: 1
type: assets
display: Image
width: 50
intro_text:
cheatsheet: true
restrict_assets: false
type: markdown
display: 'Intro Text'
width: 50
link:
max_items: 1
mode: tags
type: pages
width: 50
display: Link
link_text:
type: text
width: 50
default: 'Read More'
display: 'Link Text'
category:
max_items: 10
taxonomy: portfolio
type: taxonomy
display: Category
portfolio_tags:
type: tags
display: 'Portfolio Tags'
type: replicator
display: portfolio_item
sidebar:
display: 'Publishing Info'
fields:
template:
type: template
is_hidden:
type: toggle
display: 'Hide from navigation'
default: false
author:
max_items: 3
label: '{{ first_name }} {{ last_name }}'
mode: tags
type: users
display: Author
seo:
type: partial
fieldset: seo_meta
taxonomies: true
title: Flexible
@Chalkin
Copy link
Author

Chalkin commented Jul 18, 2019

extended_content:
            display: 'Extended Content'
            fields:
              content:
                buttons:
                  - h2
                  - h3
                  - h4
                  - h5
                  - h6
                  - bold
                  - italic
                  - underline
                  - strikethrough
                  - unorderedlist
                  - orderedlist
                  - removeformat
                  - quote
                  - superscript
                  - subscript
                  - anchor
                  - assets
                  - code
                style: sans
                spellcheck: true
                allow_source: true
                allow_internal_links: true
                link_noopener: false
                link_noreferrer: false
                target_blank: true
                semantic_elements: true
                container: main
                folder: /
                restrict_assets: false
                type: bard
                display: Bard
                sets:
                  quote:
                    fields:
                      text:
                        type: text
                      cite:
                        type: text
                  image:
                    fields:
                      image:
                        type: assets
                        container: main
                        folder: img
                        max_files: 1
                      alignment:
                        type: select
                        default: left
                        options:
                          left: Left
                          center: Center
                          right: Right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment