Hi ya,
Since im new to GRAV, i’m likely to be the error here.
I created a few supplemental fields to extend the default page view in my theme, but when i save the post only the page title is getting saved.
This is the code I wrote for the blueprint.
title: Homepage test
'@extends':
type: default
context: blueprints://pages
form:
fields:
tabs:
type: tabs
active: 1
fields:
content:
fields:
content.headingone:
type: text
style: vertical
label: Heading line one
content.headingtwo:
type: text
style: vertical
label: Heading line two
linkbox:
type: section
title: Links
underline: true
linkbox.links:
name: links
type: list
style: vertical
label: Links
fields:
.text:
type: text
label: title
.desc:
type: text
label: description
.url:
type: text
label: URL
textboxes:
type: section
title: Text boxes
underline: true
textboxes.items:
name: textboxes
type: list
style: vertical
label: Text boxes
fields:
.itemheading:
type: text
label: Heading
.itemimage:
type: filepicker
folder: 'theme://images/icons'
label: Image
preview_images: true
accept:
- .png
- .jpg
- .svg
.itemtext:
type: markdown
label: Blurb
socials:
type: section
title: Socials
underline: true
socials.sociallinks:
name: sociallinks
type: list
style: vertical
label: Social links
fields:
.text:
type: text
label: title
.url:
type: text
label: URL
Any ideas? I think i may have missed something obvious, but not sure how best to trace errors.
I’m running Grav 1.7.13 on a MAMP instance.