Latest Uploads
dungeon ma ... litz basic

realtime

Crystal Ca ... een So Far

rychan

Crystal Ca ... Screen V1

rychan

Day 5 Graphic

rychan

Mutanty Mo ... Workfiles.

steve_ancell

mono images

rockford

Forum Home

Multi-user CMS - conflicting writes?

UserMessage
Posted : Sunday, 07 August 2011, 11:27 | Permalink
HoboBen


WW Entries : 9
What do you do in a CMS when two (or more) people edit an article at the same time?

When the last user saves, just have a message saying "This article has been modified since you started. Do you still want to save your changes?"

That way, if a user is only changing a typo, they can decide not to overwrite the first user's major edit.

The entire page history will be saved, so things can be reverted if necessary.

Is that enough? How would you handle it?

I think a wikipedia-style diff is probably overkill for something that is going to happen fairly uncommonly (also my users aren't that great with the computer. We're talking IE6 and Windows XP with Service Pack 1 here).

I was thinking about allowing a user to lock an article while they're working on it (so nobody else can work on it) but the issue is how do you time them out after they close their browser without timing them out if they're just taking a long time? That would probably require an over-engineered ajax solution that probably won't work with IE6 (and yes I have to support IE6).

-----
Posted : Sunday, 07 August 2011, 15:00 | Permalink | Mark Here
CodersRule


Is it okay to use Flash/Java? It would do the same thing as ajax, but would work with IE6.
Homepage : http://tacosareawesome.com/
Posted : Sunday, 07 August 2011, 19:52 | Permalink | Mark Here
Scherererer


You can always do a lock or semaphore type of mechanism; basically when one user opens the article for editing then the other users are not allowed to until the original user releases (or perhaps times out).

I like your idea though as well, you could just have a time stamp for when the user opened the file, and compare that against the last write time on the server side so that you know if changes were made in between, and then a warning message could be displayed or an error or something. It's simple and works whether users disconnect/timeout in between or not.

-----
YouTube Twitter
Computer Science Series: Logic (pt1) (part 2) (part 3) 2's Complement Mathematics: Basic Differential Calculus
Homepage : www.google.com/profiles/Scherererer
Posted : Monday, 08 August 2011, 00:20 | Permalink | Mark Here
Jayenkai


WW Entries : 103
Yeah, that seems the better option to me, too.
As complex as you could make it, just keeping a set of previous versions seems like it would work out fine.
If the users want to quibble over which is the more complete revision, let them fix it themselves

-----
"Load, Next List!"
Homepage : http://AGameAWeek.com
Posted : Monday, 08 August 2011, 07:14 | Permalink | Mark Here
HoboBen


Thanks for the input, folks!
Latest Posts
Rest Period
steve_ancell Wed 11:55
RollerCoaster Tycoon 4
rychan Wed 04:44
Password Security Safety
dna Tue 20:48
GameJolt Revenue
Jayenkai Tue 13:04
AGameAWeek Progress Report
Jayenkai Mon 14:41
Evil Mongoose
Mog Mon 12:27
Arachnophobics Beware
steve_ancell Mon 03:36
confirmation form?
steve_ancell Mon 02:08
Driver survives flying car ride.
steve_ancell Sun 15:17
Weather Symbols
dna Sun 15:00
More

Latest Items
Showcase : dungeon maker algorithm
Jayenkai Wed 01:42
Dev-Diary : More Screens
Kuron Sat 09:01
News : Newsletter #221
Dabz Fri 10:07
Dev-Diary : Crystal Catch Development
rychan Thu 14:38
Link : Sfxr
rychan Thu 04:16
Showcase : SpringySquirrel
Jayenkai Tue 22:58
Dev-Diary : More Planning and Framework Learning
rychan Tue 17:23
Dev-Diary : Another Song
Kuron Tue 09:10
Link : Free 3D characters!
Jayenkai Mon 05:48
Family : Life...
Dabz Mon 04:57
Dev-Diary : New Song
Kuron Sun 17:32
Blog : Got Distracted from code today
rychan Sat 16:52
Dev-Diary : Monkey Day 5
rychan Sat 06:53
Dev-Diary : Monkey Day 4
rychan Fri 13:31
Showcase : Mutant Monty
steve_ancell Fri 08:14
More

Who's Online
Jayenkai
Wed, at 19:27
therevillsgames
Wed, at 19:13
steve_ancell
Wed, at 18:21
shroom_monk
Wed, at 16:35
rychan
Wed, at 15:19
rockford
Wed, at 14:37
Cower
Wed, at 14:00
dna
Wed, at 13:27
Mog
Wed, at 13:10
spinal
Wed, at 11:47
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.