开发者

move plone site to subfolder without changing modification date

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?


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.


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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜