I'm trying to use newly released support for custom Dexterity types in collective.documentviewer
but struggling to make it work properly.
I have confirmed support exists for ATFile
, but not my type:
As far as I can tell, I've satisfied the four requirements for support:
- Implement IDexterityContent (which my Dexterity Container type should do by default)
- Define a primary field, which I do here: https://github.com/collective/collective.pece/blob/master/collective/pece/content/document_artifact.py
- Add the documentviewer view to my type: https://github.com/collective/collective.pece/blob/master/collective/pece/profiles/default/types/document_artifact.xml#L21
- Upload a supported type: PDF is selected by default.
Unfortunately I get: "The file is not a supported document type. Your type may be supported. Check out the document viewer configuration settings."
Am I missing something obvious or is it code digging time? Thank you