Measurable Success «10 Checkpoints for Future-Proof Enterprise CMS» White Paper
Measurable Success - White Paper

modification()

Returns the modification an Obj has undergone.

obj = Scrivito.currentPage()
console.log(obj.modification())
=> edited

Returns null if the Obj has not been modified. Otherwise, new is returned if the Obj has been created in the working copy, edited if it existed already and has been touched, or deleted if it has been deleted.

Remarks

Always returns null for an Obj in the published content since it cannot be modified. 

Returns

String or null