Skip to content

Instantly share code, notes, and snippets.

@mxmbadev
Last active July 2, 2019 18:03
Show Gist options
  • Save mxmbadev/658860d258a4a831124774d9dd308ea9 to your computer and use it in GitHub Desktop.
Save mxmbadev/658860d258a4a831124774d9dd308ea9 to your computer and use it in GitHub Desktop.
sections:
main:
display: Main
fields:
homepage:
type: section
display: Homepage
apps:
mode: stacked
min_rows: 1
fields:
image:
container: s3
folder: images/global/personas/homepage
restrict: false
max_files: 1
type: assets
width: 25
display: Image
validate: required
description:
type: textarea
width: 75
display: Description
validate: required
type: grid
display: Personas
validate: required
product_page:
display: 'Product Page'
fields:
apps_solutions:
mode: stacked
min_rows: 1
add_row: 'Add a New Solution'
fields:
app_image:
container: s3
folder: images/products/solutions/personas
restrict: false
max_files: 1
type: assets
instructions: 'Persona Image'
width: 33
display: Image
validate: required
headline:
type: text
width: 66
display: Headline
validate: required
text_description:
type: textarea
display: Text
validate: required
details:
mode: stacked
min_rows: 1
fields:
icon:
container: s3
folder: images/products/solutions/icons
restrict: false
max_files: 1
type: assets
display: Icon
validate: required
width: 25
description:
type: text
display: Description
validate: required
width: 75
type: grid
display: Details
validate: required
instructions: 'Bullet points within the Solutions block content.'
button_text:
type: text
display: 'Button Text'
validate: required
width: 50
button_link:
type: text
display: 'Button Link'
validate: required
width: 50
instructions: 'This is a Data-Filter link on each button that is being used to call a specific category in the product feature lists below. Changing it may cause the button to break.'
add_to_sub_nav:
type: section
display: 'Add to the product Sub Nav'
sub_nav_icon:
container: s3
folder: images/products/feature_icons
restrict: true
type: assets
width: 25
display: 'Sub Nav Icon'
max_files: 1
sub_nav_name:
type: text
width: 50
display: 'Sub Nav Name'
type: grid
display: Solutions
validate: required
max_rows: 1
taxonomies: false
title: Apps

site/content/pages/1.prodcuts/index.md

apps:

  • cef743fd-8308-40c8-bd33-c7ce3603ae59
  • 7c9ce1f1-68f8-480f-8e54-524c0dce1047
{{ relate:solutions }}
<h2>{{ headline }}</h2>
{{ /relate:solutions }}
products_solutions:
display: Solutions
fields:
solutions:
collection:
- personas
type: collection
display: Solutions
validate: required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment