Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ZMI: Determining if an object doesn't need/want a modal Add dialog #535
Right now there is a hardcoded list of constructor and product names inside
There are many Zope products out there that worked fine before just attempting to redirect to their container without showing an add form, which now pop up the modal dialog that just renders the container contents. And if you dismiss the modal dialog the underlying page shows the old container contents, as if nothing was added.
I think we can agree that the solution is sub-optimal. Third-party authors should be able to set a flag themselves that will prevent the modal from popping up. This could be anything from a new class attribute (they already have to add
As far as understand you would prefer a whitelist instead of the blacklitsted classes as the better suboptimum? If you add an add_modal attribute (like the zmi_icon) that is rendered into the addItem-list, I can modify the JS twisting the logic and using that attribute.