Plon:链接完整性不起作用

发布于 2025-01-04 07:44:27 字数 1190 浏览 0 评论 0原文

更新:实际上没有错误吗?我们应该使用的功能是通过 UID 链接,而不是链接完整性。如果我们在 TinyMCE 中启用通过 UID 链接,我们可以将文件夹移动到任何地方而不会断开链接。

更新:这是一个克隆错误。我们在全新的 Plone 安装上进行了测试,并确认链接完整性在以下情况下会损坏:

当您在页面中插入图像或附加文件时,这些图像和文件与页面文件夹位于同一文件夹中,或者位于页面内的另一个文件夹中。与页面文件夹相同的顶级父文件夹,当您将此页面移动到父文件夹之外的另一个文件夹或父文件夹内但与页面文件夹处于不同级别的另一个文件夹时,将不会保留链接。也就是说,仅当您将移动移动到与页面位于同一父文件夹内且相对于父文件夹位于同一级别的另一个文件夹时,才会保留页面中的图像和文件。

当您在页面中插入图像或附加文件,并且这些图像和文件来自页面顶级父文件夹之外的文件夹时,当您将页面移动到另一个文件夹时,页面中的这些图像和文件将被保留。

也就是说,当您要附加文件/图像时,不建议将图像和文件上传到与页面相同的顶级父文件夹内的文件夹 - 因为您无法将此页面移动到另一个文件夹(除了相同的文件夹)级别相同的顶级父级),而不破坏页面中的图像和文件附件。

====== 我们正在使用 Plone 4.1.3,并且在将页面从一个文件夹移动到另一个文件夹时保留链接时遇到问题。也就是说,即使在站点设置的编辑器设置中启用了链接完整性(TinyMCE - 启用链接完整性检查),链接完整性也不起作用。我们对链接完整性的理解是,我们应该能够将页面移动到另一个文件夹,并且页面中的图像和文件附件应该仍然有效。这就是我们的愿望。然而,现在当我们将页面移动到另一个文件夹时,页面中图像或文件附件的URL保持不变,即相对URL,例如../../folder-xxx/xxx.jpg。因此,只有当我们移动到与同一父顶级文件夹位于同一级别的文件夹时,该 URL 才会起作用。如果我们将页面移动到另一级别的文件夹或顶级文件夹之外的文件夹,则该方法将不起作用,因为 URL 不会更改。

我们真的不知道这个问题是什么时候开始的。当我们从 Plone 4.1.2 升级到 Plone 4.1.3 时,它可能就开始了。但我们不确定。当我们升级时,我们进行了全新安装并复制了 blobstorage 和 filestorage。我认为升级后一切都很好,所以我们对发生的事情真的很茫然。我们认为我们能够移动过去保留的链接的页面。

ZMI 中的 Plone 站点设置中是否有用于链接完整性的设置(编辑器设置除外)?

请指教。

非常感谢您的期待。

图形用户界面

UPDATE: Actually there is no bug? The feature we should be using is Link by UID and not Link Integrity. If we enable Link by UID in TinyMCE, we can move folders anywhere without the links breaking.

UPDATE: This is a Plone bug. We tested on a fresh new Plone installation and confirmed that link integrity breaks down in the following scenario:

When you insert images or attach files in a page and these images and files are in the same folder as the page folder or in another folder inside the same top level parent folder as the page folder, the links will not be preserved when you move this page to another folder outside the parent folder or to another folder within the parent folder but on a different level as to the page folder. That is, the images and files in the page will be preserved only when you move the move to another folder which is inside the same parent folder as the page AND on the same level relative to the parent folder.

When you insert images or attache files in a page and these images and files are from a folder outside the top-level parent folder of the page, these images and files in the page are preserved when you move the page to another folder.

That is, it is not advisable to upload images and files to a folder inside the same top-level parent folder as the page when you will be attaching the files/images it -- because you cannot move this page to another folder (except same level same top-level parent) without breaking the image and file attachments in the page.

======
We are using Plone 4.1.3, and having problem with preserving links when moving a page from one folder to another. That is, Link Integrity isn't working even though it is enabled in our Site Setup's Editor Settings (TinyMCE - Enable link integrity checks). Our understanding of link integrity is that we should be able to move a page to another folder and the images and file attachments in the page should still work. This is what we desire. However, now when we move the page to another folder, the URL of the image or file attachment in the page stays the same, i.e., a relative URL, e.g. ../../folder-xxx/xxx.jpg. So the URL will only work if we move to a folder which is on the same level relative to the same parent top-level folder. It won't work if we move the page to a folder on another level or to a folder outside the top-level folder -- because the URL doesn't change.

We don't really know when this problem started. It could have started when we upgraded from Plone 4.1.2 to Plone 4.1.3. But we are not sure. When we upgraded, we did a fresh install and copied the blobstorage and filestorage over. I think everything was fine after the upgrade, so we are really at a loss on what happened. We think we were able to move pages with the links preserved in the past.

Is there a setting in ZMI on Plone Site Setup for Link Integrity (other than Editor Settings)?

Please advise.

Thank you very much in anticipation.

cmgui

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文