开发者

Get Plone 4 to import pictures as images and not files when uploading with webdav

开发者 https://www.devze.com 2023-03-23 01:48 出处:网络
I remember back in Plone 2 days I found a simple hack to make one CMFPhoto folder receive webdav files as imag开发者_开发问答es (and show them as a gallery).

I remember back in Plone 2 days I found a simple hack to make one CMFPhoto folder receive webdav files as imag开发者_开发问答es (and show them as a gallery).

In Plone4 the images are received as content type files which are not very useful.

Other mass uploading options seem not to be updated to recent versions of Zope/Plone, except uploadify, which makes my server unable to start when installed with buildout.

Functioning webdav would be ideal

Thanks for any ideas, although I can't say I have understood the framework enough to use just a hint

Steen


The short answer is that you need to take a look in the Content Type Registry tool within your site and figure out the settings related to the image (png, jpg) extensions and mime-type that are configured for your site. Visit the Zope Management Interface of your site, and go to ./content_type_registry in he root of your site to take a look.

The more complicated answer is that folders in Plone have a method called PUT_factory() that controls what items get created as. Different folder types can behave differently, but all stock folder types in Plone and most add-ons should obey (unless a bug) the settings in the Content Type Registry.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号