iancox
December 30, 2020, 9:17pm
1
Ive followed the example above successfully however as soon as I add my own fields, the draft and listed pages disappear. How can I get the panel to display both?
title: Shop
preset: pages
icon: 🛍
drafts:
extends: sections/products
headline: Unpublished Products
listed:
extends: sections/products
headline: Published Products
layout: cards
fields:
text:
label: Text
type: textarea
size: small
products:
label: Product Categories
type: tags
texnixe
December 30, 2020, 9:56pm
2
A pages preset is not supposed to have field.
You can remove the line preset: pages
, then set up custom sections.
title: Shop
sections:
drafts:
extends: sections/products
headline: Unpublished Products
listed:
extends: sections/products
headline: Published Products
layout: cards
fields:
fields:
text:
label: Text
type: textarea
size: small
products:
label: Product Categories
type: tags
1 Like
iancox
December 30, 2020, 10:16pm
3
Ah, of course. thank you so much!
Is there a way I can mimic the listed/unlisted behavior shows before?
Probably within the extended sections/product
file?
texnixe
December 30, 2020, 10:20pm
4
Yes, you can set the status:
drafts:
extends: sections/products
headline: Unpublished Products
status: draft
And then published
or listed
or unlisted
for the listed ones, depending on the statuses you want to use.
1 Like