Latest Uploads
image-15-0 ... -19-40.jpg

Jayenkai

image-15-0 ... -20-07.jpg

Jayenkai

Bumble Bee

dna

Tires

dna

Guess The Remake

rychan

Julia Set Visualer

Andy_A

Forum Home

Multi-user CMS - conflicting writes?

UserMessage
Posted : Sunday, 07 August 2011, 12: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, 16: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, 20: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, 01: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, 08:14 | Permalink | Mark Here
HoboBen


Thanks for the input, folks!
Latest Posts
Ouch. Red Ring...
Jayenkai Sun 16:37
''New'' 3DS
rockford Sun 15:15
To the cinema, chaps!
9572AD Sun 13:25
Music Archive Website Thingy..
Jayenkai Sun 13:06
AGameAWeek Progress Report
Jayenkai Sun 11:15
Archos Gamepad Tablet 2
rockford Sat 14:16
Depressingly Popular...
Jayenkai Sat 09:13
Hello Kitty
steve_ancell Thu 19:49
What Have You Done - August 2014
Afr0 Thu 15:31
phpBB *RANT*
rychan Thu 14:35
More

Latest Items
Showcase : Little Nemo's Nightmare
Jayenkai Sat 04:14
News : Newsletter #234
rychan Fri 08:02
Showcase : Space Rocket Adventurers
HoboBen Thu 16:56
Blog : Health Update : August 2014
Jayenkai Sat 11:31
Blog : 20 Years Ago....
Jayenkai Sat 09:17
Techy : Back from Game Dev Con!
Jayenkai Sun 16:52
Family : Sunday
Jayenkai Wed 03:31
Family : Good News (for once)
Kuron Tue 15:37
Showcase : Don't Tap The Zombies
therevillsgames Mon 16:26
Showcase : Mutant Monty
steve_ancell Wed 19:26
Blog : Update
Kuron Mon 13:52
Techy : New Laptop!?
Kuron Fri 15:52
Showcase : Ascension 2 Live Wallpaper
CodersRule Fri 13:48
Showcase : Saviors of Gundthor
CodersRule Fri 12:50
Showcase : Lava Monkey
rychan Tue 16:13
More

Who's Online
rockford
Mon, at 01:17
rychan
Mon, at 01:10
HoboBen
Sun, at 21:17
steve_ancell
Sun, at 19:42
dna
Sun, at 19:25
brdtt12
Sun, at 17:51
Jayenkai
Sun, at 17:48
9572AD
Sun, at 14:05
Afr0
Sun, at 13:40
spinal
Sun, at 12:26
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.