2.2.0 Developer Version: Problem with adding/editing structure field items

Hi everyone: When I try to add/edit a structure field in the panel of the developer version (2.2.0), all I see is a progress bar at the top of the page but then nothing ever happens apart from the fact that an id is added to the field in the text file on save. Can anyone confirm this before I create an issue on GitHub?

could you paste the blueprint definition for that structure field?

Sure, just something I copied from an example here on the forum:

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

title: Project
pages: false
files:
  sortable: true
fields:
  title:
    label: Title
    type:  text
  year:
    label: Year
    type:  text
  text:
    label: Text
    type:  textarea
  tags: 
    label: Tags
    type:  tags 
  publications:
    label: Publications
    type: structure
    style: table
    fields:
      sort:
        label: Sort
        type: text
      entry:
        label: Entry
        type: textarea   

There’s an issue here with textarea buttons. I just fixed this on the develop branch.

Works, thanks for the quick fix. :grinning:

I have a problem with the structure field items too but this only happens on the ‘Site Options’ panel page. I keep getting this error when I click on ‘Add’:

Fatal error: Cannot use object of type Kirby\Panel\Models\Site as array in /Applications/MAMP/htdocs/kirby-copy/panel/app/src/panel/structure.php on line 80

Have you pulled the latest changes from the develop branch? There have been quite a few issues with the structure field, some of which have been fixed.

I just pulled the latest panel and seems to be working now. Thanks :grinning:

Hi There, having the same issue with my Kirby 2.2 Trial version. Where can I download the develop branch?

I suggest updating the link to the beta version to that head revision, so testers get the newest version possible.

Thanks a lot in advance!

From here: https://github.com/getkirby/panel/archive/develop.zip

Looks like there are a lot of fixes under way today …