If, for example, you make the level of access to the database for registered users, is it possible to make a page with the history of the database correction?
Something similar on wikipedia
Does anyone know how to do this?
Hey! yes, this can be done using hooks that are triggered whenever an interaction with your collection occurs. You could use it to insert the changes of the author to a separate collection which you could then display on your history page.
Do I need this to approve publications?
And what should I write to activate?
// In data.js
export function myCollection_beforeInsert(item, context) {
let hookContext = context; // see below
// some change to the received item
return item;
}
https://www.wix.com/corvid/reference/wix-data.Hooks.html
And which one is right for the edit history?