Odd Structure Field Error: Field Cannot Be Extended

Can’t figure this one out. I’ve been trying to add the following structure field to one of my pages:

  team:
    label: Team Members
    type: structure
    entry: >
      <strong>{{name}}</strong><br>
      {{photo}}<br>
      <em>{{email}}</em>
    fields:
      name:
        label: Name
        type: text
        required: true
      photo:
        label: Photo
        type: select
        options: images
        required: true
        help: photo of team member - maximum size should be 200x400 pixels (larger images will resized down and cropped).
      intro:
        label: Introduction
	type: textarea
      email:
	label: Direct Email
	type: email

This description seems fine to me, but I must be doing something wrong: when I access the page in the panel and try to add a record, I get an error message…:

ERROR
The field cannot be extended.

Can someone please tell me what I’m overlooking?.. Many thanks in advance for any assistance.

Never mind - for no reason whatsoever, it now decided to work. ???

I’m getting the issue as well now, and it happens whenever I add a field to the blueprint & template. The new variable shows up just fine in the page when rendered, but I can’t access that particular page via the Panel.

Is there a step I’m missing?

So you get the error message “The field cannot be extended.”?

If so, quick checklist:

  • Do you use field snippets?
  • Have you tried logging out from the Panel or using a different browser (the reason here is to clear the session)?
  • If logging out does not help, please post your blueprint where the error occurs.

I just tried logging out, clearing cache, etc - looks like it’s still an issue.

The blueprint in question is below. The items added are paintingmedium and paintingdimensions.

<?php if(!defined('KIRBY')) exit ?>

title: Painting
pages: false
files:
 sortable: true
fields:
 title:
 label: Title
 type: title
 subtitle:
 label: SubTitle
 type: text
 icon: font
 thumbimage:
 label: Thumb Image
 type: select
 options: images
 width: 1/2
 help: Thumbnail Image (width:380px)
 fullimage:
 label: Full Image
 type: select
 options: images
 width: 1/2
 help: Full Image (width:1080px)
 paintingmedium:
 label: Medium
 type: text
 width: 1/2
 help: The medium of the painting.
 paintingdimensions:
 label: Dimensions
 type: text
 width: 1/2
 help: Use the format, 11" x 14"
 text:
 label: Text
 type: textarea
 tags:
 label: Tags
 type: tags
 lowercase: true
 required: true
 help: All tags will appear in filter.
 options:
 label: Options
 type: headline
 bgcolor:
 label: Header Color
 type: color
 default: 143893

Could you please edit your post above to use Markdown code blocks instead of the quote marks? Code blocks use three backticks at the beginning and end. They make it a lot easier to see the code and also they preserve indentation for YAML.

1 Like

Thanks for changing the post syntax.

One issue of your blueprint is that you need to indent the field information. Also you should at least use two spaces for indentation to make it more clear, but this is just a detail.

<?php if(!defined('KIRBY')) exit ?>

title: Painting
pages: false
files:
  sortable: true
fields:
  title:
    label: Title
    type: title
  subtitle:
    label: SubTitle
    type: text
    icon: font
  ...
1 Like

Thanks, that was the issue. I’ll make sure to dbl space in the future too. Thank you for your help.