How do you like the idea?

94.7% 18
5.3% 1

19 Date 2009-06-29 01:49

Forums / Cotonti / Core Labs / Archive / Poll: Page validation enhancement

A small tweak that could be ultimate in most cases

tensh
#13602 2009-06-30 19:59
In my opinion, the temporary solution mentioned in the first post is all OK + editing lock.

Editing lock (simple)
- new rows in Table sed_pages - page_lock, page_lock_user
- when user hits "edit", the variable "1" is written in page_lock and username is written in page_lock_user.
- The page is locked for editing until the variables are erased, just when user hits "submit". Another user gets message "The page is being edited by user <Username>" if he encounters lock.

It's best made as a plugin maybe? Not everybody might want the lock. Also, there might be a situation in which user locks the page continuously (because he's mean or sth) - that's why it would be nice to just disable the plugin.

Another hypothetical situation is when user hits "edit" but then just leaves the edit screen. The button "cancel edit" would be needed, and a javascript message when somebody wants to leave/close page, that the page is still being edited and whether he wants to save changes or not. Just in case, the global admin tool for locking/unlocking all pages would be nice. Or some kind of "lock timeout" in a form of a check where user is at the moment (based on sed_online -> online_location)...?

... did I miss something...?
This post was edited by tensh (2009-06-30 20:06, 14 years ago)