steirico / kirby-plugin-custom-add-fields

Custom fields for Kirby's add dialog.
MIT License
36 stars 4 forks source link

Call to a member function blueprints() on null #52

Closed REHvision closed 2 years ago

REHvision commented 2 years ago

I tested the feature/kirby-3.6 branch to prepare updating a site to Kirby 3.6 where I need this great plugin. Everything seems to work as expected when adding subpages to pages.

But it breaks (no add dialog shown) when I try to add subpages via a pages section from the site.yml blueprint - no matter if the child template uses addFields or not. Pages sections without parent-option (so site is parent) work though.

The error in the console is Call to a member function blueprints() on null.

I hope this helps :wink:

steirico commented 2 years ago

Thanks for your feedback.

Could you try if 05d61c588305553215c560b02bc88309fb08d405 solves the problem?

If not so, could you share your site.yml?

REHvision commented 2 years ago

Wow, thank you very much for your quick response, it works as expected now! :wink::+1: No errors anymore, only a message "submit" gets logged in the console when creating a page.

steirico commented 2 years ago

Good to hear! The debug output will disappear for the release 😉