steirico / kirby-plugin-custom-add-fields

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

Add-Dialog closes when using pages-field inside addFields #65

Open teichsta opened 2 years ago

teichsta commented 2 years ago

Hi,

thanks for this great plugin @steirico !

In my setup i'd like to use a pages and a users field to select the author and the post category (which eseentially is organised in pages). When clicking cancel oder "ok" in pages/users dialog also the add page dialog closes.

Am i doing things right?

Best, Thomas E.-E.

steirico commented 2 years ago

Hi

thanks for your feedback.

Fields such as the pages field are rather special ones and may not work (c.f. known issues in the README). If you could provide a blueprint, I'm willing to have a look into it. Especially if you use a newer version of Kirby. Which version of Kirby and PHP do you use?

teichsta commented 2 years ago

currently using kirby 3.7.5.1

It seems you can simply add any pages, files oder users field as addField.

Would appreciate your support :-)

teichsta commented 2 years ago

@steirico the problem seems to be that the events from topmost dialog ist propagated through the the whole stack (of components) and is not being stopped on level of the CreateDialog. Any idea how to proceed here? I am willing to help whereever i can :-)

steirico commented 2 years ago

@teichsta I'm currently locking into this. Could you share your blueprint? Also to clarify, which version of the plugin do you use?

steirico commented 2 years ago

There is a closed but not resolved issue in Kirby. So far I can not see a solution here.