Adding fields to 'pages' blueprint

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  

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

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?

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