kirby-plugin-custom-add-fields icon indicating copy to clipboard operation
kirby-plugin-custom-add-fields copied to clipboard

Add-Dialog closes when using pages-field inside addFields

Open teichsta opened this issue 2 years ago • 5 comments

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.

teichsta avatar Nov 07 '22 11:11 teichsta

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?

steirico avatar Nov 09 '22 13:11 steirico

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 avatar Nov 13 '22 17:11 teichsta

@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 :-)

teichsta avatar Nov 15 '22 10:11 teichsta

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

steirico avatar Nov 22 '22 10:11 steirico

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

steirico avatar Nov 23 '22 23:11 steirico