使用 webdav 上传时,让 Plone 4 将图片导入为图像而不是文件
我记得在 Plone 2 天时,我发现了一个简单的技巧,可以让一个 CMFPhoto 文件夹接收 webdav 文件作为图像(并将它们显示为图库)。
在 Plone4 中,图像作为内容类型文件接收,这不是很有用。
其他批量上传选项似乎没有更新到 Zope/Plone 的最新版本,除了 uploadify,这使得我的服务器在安装了 buildout 时无法启动。
运行 webdav 将是理想的选择
感谢您的任何想法,尽管我不能说我已经足够理解该框架以仅使用提示
Steen
I remember back in Plone 2 days I found a simple hack to make one CMFPhoto folder receive webdav files as images (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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简而言之,您需要查看站点内的内容类型注册表工具,并找出与为您的站点配置的图像(png、jpg)扩展名和 mime 类型相关的设置。访问您站点的Zope管理界面,然后进入站点根目录下的./content_type_registry进行查看。
更复杂的答案是,Plone 中的文件夹有一个名为 PUT_factory() 的方法,该方法控制创建的项目。不同的文件夹类型可能有不同的行为,但 Plone 中的所有库存文件夹类型和大多数附加组件都应遵循内容类型注册表中的设置(除非有错误)。
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.