I would like to have getObjPositionInParent as a sort criteria in a collection. I configured it as “available” in the site setup for collection views. But it is not available. Did I forget something?
I would like to have getObjPositionInParent as a sort criteria in a collection. I
Share
You didn’t forget anything, but found a bug in Plone. The GopipIndex from plone.app.folder is used for the getObjPositionInParent index. But this index type is not registered for any collection criteria. The criterion registry in Products.ATContentTypes.criteria needs to include a mapping for the GopipIndex. Likely adding it to the SORT_INDICES list would be the right thing to do. To do this from outside, you can do something like: