RelatedItemsFieldWidget exclude Items with Interfaces (IWorkingCopy)

Is it possible to exclude all items with a specific Interface?

In our case, we have to not list all Working-Copies in RelatedItems Field - hide all items which have an "IWorkingCopy" Interface...

The other way is possible, i know ... :slight_smile:

    'object_provides': IWorkingCopy.__identifier__

Thank you

You could set a different vocabulary for the field, one that doesn't include IWorkingCopy items.

I imagine you could do this by using a custom behavior which extends IRelatedItems and defines its own relatedItems field.
Use that behavior instead of the IRelatedItems one and you should be good to go.

Plone Foundation Code of Conduct