Sure, but I’m not 100% sure what to post, but here goes…
Notice that default.yml
and posts.yml
are exactly the same, this will allow my to change template.
But when I try to use the extends: layouts/default
feature with photo.yml
and the /layout/default.yml
even though it works fine, I’m unable to change template.
Hope that makes sense.
Here’s the full /layout/default.yml
title: Default
options:
changeTemplates:
- default
- articles
- posts
- photos
- videos
- newsletter
- quotes
- testimonials
- tools
- search
- export
- fullpage
tabs:
Post:
columns:
main:
width: 2/4
sections:
main:
type: fields
fields:
video_platform:
type: select
label: Use video platform.........
options:
bunny: Bunny
youtube: YouTube
x: X
odysee: Odysee
dailymotion: Dailymotion
rumble: Rumble
odysee:
label: Odysee
type: url
dailymotion:
label: Dailymotion
type: url
rumble:
label: Rumble
type: url
video:
label: Bunny video ID
type: text
youtube:
label: YouTube
type: url
x:
label: X
type: url
post_header:
label: Header
type: text
post_subheader:
label: Subheader
type: textarea
size: small
pre_post:
label: Pre post
type: textarea
size: small
post:
label: The post
type: textarea
size: large
sidebar:
width: 1/4
sections:
sidebar:
type: fields
fields:
images_files:
label: Images & files
type: files
sortable: true
layout: cards
image:
cover: true
ratio: 1/1
show_image:
label: Image in post
type: checkboxes
options:
Yes: no
tags:
label: Tags
type: tags
max: 3
options:
type: query
query: site.index.pluck("tags", ",", true)
date:
label: date
display: MMM D YYYY
default: now
required: true
time:
label: Time
type: time
default: now
step:
unit: minute
size: 1
required: true
sidebarr:
width: 1/4
sections:
sidebarr:
type: fields
fields:
image_meta:
label: Meta thumbnail
type: files
max: 1
layout: cards
image:
cover: true
ratio: 1/1
title_meta:
label: Meta title
type: text
description_meta:
label: Meta description
type: textarea
size: small
buttons: false
featured_post:
type: toggle
label: Featured post
text:
- 'No'
- 'Yes'
subscriber_only:
type: toggle
label: Subscriber only post
text:
- 'No'
- 'Yes'
landing_page:
type: toggle
label: Landing page
text:
- 'No'
- 'Yes'
hide_items:
label: Hide...
type: checkboxes
options:
Logo: no
Navigation: no
Posts: no
Notes:
width: 4/4
sections:
notes:
type: fields
fields:
note:
type: textarea
size: large
Here’s the full photo.yml
title: Photos
extends: layouts/default
options:
changeTemplate:
- default
- articles
- posts
- photos
- videos
- newsletter
- quotes
- testimonials
- tools
- search
- export
- fullpage
Here’s the full posts.yml
title: Post
options:
changeTemplate:
- default
- articles
- posts
- photos
- videos
- newsletter
- quotes
- testimonials
- tools
- search
create:
fields:
- tags
tabs:
Post:
columns:
main:
width: 2/4
sections:
main:
type: fields
fields:
video_platform:
type: select
label: Use video platform...
options:
bunny: Bunny
youtube: YouTube
x: X
odysee: Odysee
dailymotion: Dailymotion
rumble: Rumble
odysee:
label: Odysee
type: url
dailymotion:
label: Dailymotion
type: url
rumble:
label: Rumble
type: url
video:
label: Bunny video ID
type: text
youtube:
label: YouTube
type: url
x:
label: X
type: url
post_header:
label: Header
type: text
post_subheader:
label: Subheader
type: textarea
size: small
post:
label: The post
type: textarea
size: large
sidebar:
width: 1/4
sections:
sidebar:
type: fields
fields:
images_files:
label: Images & files
type: files
sortable: true
layout: cards
image:
cover: true
ratio: 1/1
show_image:
label: Image in post
type: checkboxes
options:
Yes: no
tags:
label: Tags
type: tags
max: 3
options:
type: query
query: site.index.pluck("tags", ",", true)
date:
label: date
display: MMM D YYYY
default: now
required: true
time:
label: Time
type: time
default: now
step:
unit: minute
size: 1
required: true
sidebarr:
width: 1/4
sections:
sidebarr:
type: fields
fields:
image_meta:
label: Meta thumbnail
type: files
max: 1
layout: cards
image:
cover: true
ratio: 1/1
title_meta:
label: Meta title
type: text
description_meta:
label: Meta description
type: textarea
size: small
buttons: false
featured_post:
type: toggle
label: Featured post
text:
- 'No'
- 'Yes'
subscriber_only:
type: toggle
label: Subscriber only post
text:
- 'No'
- 'Yes'
landing_page:
type: toggle
label: Landing page
text:
- 'No'
- 'Yes'
hide_items:
label: Hide...
type: checkboxes
options:
Logo: no
Navigation: no
Posts: no
Notes:
width: 4/4
sections:
notes:
type: fields
fields:
note:
type: textarea
size: large
Here’s the full default.yml
title: Post
options:
changeTemplate:
- default
- articles
- posts
- photos
- videos
- newsletter
- quotes
- testimonials
- tools
- search
create:
fields:
- tags
tabs:
Post:
columns:
main:
width: 2/4
sections:
main:
type: fields
fields:
video_platform:
type: select
label: Use video platform...
options:
bunny: Bunny
youtube: YouTube
x: X
odysee: Odysee
dailymotion: Dailymotion
rumble: Rumble
odysee:
label: Odysee
type: url
dailymotion:
label: Dailymotion
type: url
rumble:
label: Rumble
type: url
video:
label: Bunny video ID
type: text
youtube:
label: YouTube
type: url
x:
label: X
type: url
post_header:
label: Header
type: text
post_subheader:
label: Subheader
type: textarea
size: small
post:
label: The post
type: textarea
size: large
sidebar:
width: 1/4
sections:
sidebar:
type: fields
fields:
images_files:
label: Images & files
type: files
sortable: true
layout: cards
image:
cover: true
ratio: 1/1
show_image:
label: Image in post
type: checkboxes
options:
Yes: no
tags:
label: Tags
type: tags
max: 3
options:
type: query
query: site.index.pluck("tags", ",", true)
date:
label: date
display: MMM D YYYY
default: now
required: true
time:
label: Time
type: time
default: now
step:
unit: minute
size: 1
required: true
sidebarr:
width: 1/4
sections:
sidebarr:
type: fields
fields:
image_meta:
label: Meta thumbnail
type: files
max: 1
layout: cards
image:
cover: true
ratio: 1/1
title_meta:
label: Meta title
type: text
description_meta:
label: Meta description
type: textarea
size: small
buttons: false
featured_post:
type: toggle
label: Featured post
text:
- 'No'
- 'Yes'
subscriber_only:
type: toggle
label: Subscriber only post
text:
- 'No'
- 'Yes'
landing_page:
type: toggle
label: Landing page
text:
- 'No'
- 'Yes'
hide_items:
label: Hide...
type: checkboxes
options:
Logo: no
Navigation: no
Posts: no
Notes:
width: 4/4
sections:
notes:
type: fields
fields:
note:
type: textarea
size: large