开发者

In Plone, inlined content does not update on document when published

I have documents in my Plone CMS with content inlined from other objects. Once the document is published to my site the date and time it was last published (ie. last updated) is displayed at the bottom of the page template.

The problem I'm having is that When I re-publish the object from which content is inlined, the changes made to the 开发者_StackOverflowcontent displays fine on the document, but the last updated date and time stays the same.

Obviously re-publishing the document itself will update last updated, but i'm wondering why last updated does not update itself automatically when the other object (where content is inlined from) is re-published.

The documents also link to other objects, when these other objects are altered and re-published, the date and time automatically update, without having to re-publish the actual document.


The last modification date is based on the object itself. Plone cannot automatically detect that you inline some other object's content.

If you "inline" the other objects's content with a simple iframe or so, you're out of luck.

If you wrote your own content type that grabs some other objects's content programmatically: yes, you can fix it. You'll have to register an event handler that listens to the other object's modification event.

Alternatively, you could write a script that goes through all your content-that-could-have-an-inline, find the content it inlines and updates the modification date if needed.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜