"Upload to..." impossible in containers of type other than 'Folder'
Opened this issue · 0 comments
sauzher commented
Bring here this: https://community.plone.org/t/tinymce-upload-file-to-containers-other-than-folder-large-plone-folder-plone-site-impossible/16135/2
The problem is that selectableTypes
are defaulted to ['Folder'] here
mockup/src/pat/upload/upload.js
Line 49 in c31dcf0
IMHO, it would be nice either of this two options:
- let the used related items pattern look for some generalist interface like
IPrincipiaFolderish
as suggested by @petschki (https://community.plone.org/t/tinymce-upload-file-to-containers-other-than-folder-large-plone-folder-plone-site-impossible/16135/3?u=sauzher) - get
selectableTypes
be parametrized so that a consumer (for ex. TinyMCE template) could pass its specific configuration viadata-pat-upload
. Actually TinyMCE hasProducts.CMFPlone.interfaces.controlpanel.ITinyMCESchema.plone.contains_objects
configuration registry option that seems to fit quite well.