Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Block plugin crashes on custom folder name #262

Description

@tideg

Describe the bug
After changing the folder name of a custom block plugin, the editor field won´t show up in the panel anymore. The panel error is 'The field type "[name of the corresponding editor field]" does not exist'

To Reproduce
Steps to reproduce the behavior:

  1. Copy one of the provided example blocks, i.e. 'info-block' into /site/plugins/
  2. Change the name of the block inside index.php, index.js (change to download-block for example)
  3. Rename /site/plugins/info-block/snippets/info.php accordingly (download.php)

The plugin should run as expected.

  1. Now change the plugin´s folder name from 'info-block' to 'download-block'
  2. The editor field in the panel will now be broken as described.

Kirby Version
3.4.3

Console output
Uncaught ReferenceError: editor is not defined
at index.js?1600444109:3

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome, Firefox, etc.

Tried on different server environments, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions