TimOetting / kirby-v3-builder

17 stars 2 forks source link

Structure field inside builder doesn't work #19

Closed olach closed 5 years ago

olach commented 5 years ago

When using a structure field as a field inside this builder plugin, an error occurs.

undefined is not an object (evaluating 't.endpoints.field')

This error seems to started happening after this commit in Kirby Core:

https://github.com/k-next/kirby/commit/d4ed1fdf1fd71b61a6ee7e59ccaa03fc968a7247#diff-52f37d338d34e955e9e0b5e5aad44e8f

I tried to figure out the cause for this, but my PHP/JS skills are not that good unfortunately.

olach commented 5 years ago

Kirby 3 Nightly build 2018-12-12 works. After that version, a change in Kirby Core makes the Structure field incompatible with the builder plugin.

olach commented 5 years ago

I just updated to the Kirby RC1 released today. Now the core files field doesn't work inside the builder plugin. I get almost the same error message as above, but not printed on the screen, only in the dev console.

undefined is not an object (evaluating 'this.endpoints.field')

So I guess there were some changes in the core that your builder plugin needs to support?

johannschopplich commented 5 years ago

@TimOetting Any update on this issue? 🙂 No that Kirby 3 comes close to release I'ld really like to use your plugin.

TimOetting commented 5 years ago

Hey. The repository has been moved to https://github.com/TimOetting/kirby-builder/ . The latest version works with structure fields again (and also with files and pages fields)