将克隆站点移至子文件夹而不更改修改日期
我在一个 zope 实例 (ZODB) 中有多个克隆站点。 现在我想将一些网站移动到子文件夹中。 问题是,当我移动网站时,网站内所有页面的修改日期都会更新。 有没有办法防止这种情况,使日期保持不变?
I have multiple plone sites in one zope instance (ZODB).
Now I'd like to move some of the sites to a subfolder.
The problem is that when I move the site the modification date of all the pages inside the site are getting updated.
Is there a way to prevent this so that the dates stay the same?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
实际上不支持在 ZMI 中移动 Plone 站点。不幸的是,仍然可以在 UI 中执行此操作。
Plone 站点内的各种内部数据结构将因此而损坏。例如,所有目录都将包含无效数据(可以通过重新索引整个站点来修复),而且自动重定向机制内的数据结构也会损坏,而没有简单的方法来修复它们。
另外,通常不鼓励在 Zope 根目录之外的任何地方添加 Plone 站点。我们可能会在未来的 Plone 版本中禁止任何嵌套文件夹结构。
Moving Plone sites in the ZMI isn't actually supported. It's unfortunately still possible to do this in the UI.
Various internal data structures inside the Plone site will break as a result of this. For example all catalogs will have invalid data (which can be fixed by reindexing the entire site) but also data structures inside the automatic redirection machinery will break without an easy way to fix them.
Also adding Plone sites anywhere except in the Zope root is generally discouraged. We are likely to disallow any nested folder structures in a future Plone version.
最好的机会是导出站点(通过 ZMI),然后导入到文件夹中。目标文件夹必须是 Zope 文件夹,而不是 Plone 文件夹或站点。绝对确保在导入后重新建立索引。汉诺在回答中的警告仍然适用。
Your best chance is to export the site (via the ZMI) then import into the folder. The target folder must be a Zope folder -- not a Plone folder or site. Make absolutely sure to reindex after the import. Hanno's warnings in his answer still apply.