You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
date = DateToString(DateTime())
db = plominoDocument.getParentDatabase()
user_name = userFullname(db, db.getCurrentMember())
plominoDocument.setItem(
'history',
plominoDocument.getItem('history') +
"This document has been modified by "+user_name+" on "+date)
to onSaveDocument but I just get a line pictured below when a document is changed.
Plone provides a history for any content, and it is stored in tool (portal_historystorage).
You cannot update this history storage just be creating a plomino field named "history", it will not be binded (Plone cannot guess it should be).
So you have 2 options:
either you store your history into your Plomino history field and you implement a mechanism to display it instead of the Plone history (probably quite easy with Diazo)
either you use the Plone API to update the actual Plone history from your Plomino formula
I added
date = DateToString(DateTime())
db = plominoDocument.getParentDatabase()
user_name = userFullname(db, db.getCurrentMember())
plominoDocument.setItem(
'history',
plominoDocument.getItem('history') +
"This document has been modified by "+user_name+" on "+date)
to onSaveDocument but I just get a line pictured below when a document is changed.
I read the comments on http://sourceforge.net/p/plomino/discussion/538558/thread/41f22e29
and was wondering if there's document versioning?
The text was updated successfully, but these errors were encountered: