Plone-关于在页面中存储图像和文件附件的最佳实践? [英] Plone - Best practice on where to store image and file attachments in pages?

查看:75
本文介绍了Plone-关于在页面中存储图像和文件附件的最佳实践?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Plone 4.1.3构建Intranet网站,并想知道是否存在Plone最佳实践来存储附加到页面的文件和图像.我们的Intranet更像是一个协作站点,用户可以在其中发布新闻项目和其他文章.因此,用户将插入图像(使用TinyMCE的插入/编辑图像)并将文件附加到页面.

We are building an Intranet website using Plone 4.1.3 and would like to know if there is a Plone best practice on storing the files and images that are attached to pages. Our Intranet is more of a collaborative site where users can post News item and other articles. So users will be inserting images (using TinyMCE's insert/edit Image) and attaching files to pages.

问题:我们应该要求用户将图像和文件上传到哪里?我们是否应该让用户将图像和文件上传到页面本身所在的文件夹中?或者我们应该在与该页面相同的文件夹中创建一个子文件夹,称为_images和_files,然后将图像和文件分别上传到_images和_files文件夹.还是我们应该在页面的父文件夹之外创建一个通用的顶层文件夹,并让我们的用户将文件和图像上传到该顶层文件夹(也许到该顶层文件夹中的_images和_files子文件夹).例如,如果我们的站点上有三个顶级文件夹:新闻,财经和工程-然后我们又有一个顶级文件夹调用,即上载.用户将在新闻"中创建页面,当他们使用TinyMCE在页面中插入图像时,他们将上传到顶层文件夹上载",而不是与页面相同的文件夹中.

Question: where should we ask the users to upload the images and files to? Should we let users upload images and files to the same folder as the page itself? Or should we create a subfolders inside the same folder as the page, called, say, _images and _files, and upload images and files to the _images and _files folders respectively. Or should we create a common top-level folder outside of the parent folder of the page and have our users upload files and images to this top-level folder (maybe to _images and _files subfolders inside this top-level folder). For example, if we have three top-level folders on our Site: News, Finance and Engineering -- and then we have another top-level folder call say Uploads. Users will create pages in say News and when they insert an image in the page using TinyMCE, they will upload to the top-level folder Uploads instead of to the same folder as the page.

将图像和文件存储在与页面相同的文件夹中或页面文件夹内的子文件夹中的第一种方法的问题是,图像和文件将散布到各处. 创建仅用于存储所有上传的图像和文件的顶级文件夹的第二种方法的问题在于,它似乎不是Plone的处理方式-将与页面相关的所有内容都保留在与该文件夹相同的文件夹中页面或相同的父文件夹.

The problem with the first approach of storing images and files in the same folder as the page or in a subfolder inside the page folder is that the images and files will be scattered all over the place.
The problem with the second approach of having a top-level folder created just to store all the uploaded images and files is that it does not appear to be the Plone way of doing things - keeping everything related to the page inside the same folder as the page or same parent folder.

是否有Plone最佳做法,用于在插入图像(通过TinyMCE插入/编辑图像按钮)和页面中的文件链接时将图像和文件上传到何处?什么是克隆方式?

Is there a Plone best practice on where upload the images and files to when inserting images (via TinyMCE insert/edit Image button) and file links in a page? What is the Plone way?

有什么想法吗?

非常感谢您的期待.

推荐答案

在我帮助建立的150多个Plone网站中,我想说的是绝大多数使用中央"Images"文件夹打包.这可能不适用于非常大的站点,但是对于许多站点,我认为这至少是合理的良好"做法.我还要说,UID链接是一个好主意,因为它使页面在移动/断开链接时非常健壮.

In the 150+ Plone sites I've helped build, I'd say the vast majority wound up using a central "Images" folder. This might not work for a very large site, but I think it is at least a "reasonably good" practice for many sites. I would also say that UID linking is a good idea, since it makes pages quite robust against moves/broken links.

这篇关于Plone-关于在页面中存储图像和文件附件的最佳实践?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆