Latest Uploads
image-29-0 ... -20-30.jpg

Jayenkai

God Of War 107999

gameleaper

Music. How ... do I even?

rychan

GodOfMiniWars

gameleaper

3lanc.jpg

GfK

image-03-0 ... -24-07.jpg

Jayenkai

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).

-----
Homepage : http://www.tawesoft.co.uk/
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!
Homepage : http://www.tawesoft.co.uk/
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Dabz's Holiday! (Again?)
Dabz Mon 09:47
Websites : Scale to Fit
Jayenkai Mon 06:21
Greenlit!
HoboBen Mon 03:46
Ohh Gameboy Dev, nyom nyom!
rychan Sun 16:20
InDev : NeonPlat Adventures 2
Jayenkai Sun 06:09
Struggling with recursion
Dabz Thu 09:28
Flash vs Java
rychan Thu 02:45
Seeking Old Community Members
rychan Thu 01:25
Amazon Underground
rychan Wed 23:49
Great Big Youtube thread
Jayenkai Wed 12:04
More

Latest Items
Blog : Back on the run
rychan Wed 01:03
Showcase : The Catcher Van
rychan Mon 04:40
Showcase : GodOfMiniWars
gameleaper Sun 20:12
Blog : Doctor Two
Jayenkai Tue 09:15
Showcase : WarTactical
gameleaper Mon 17:08
Showcase : Daily Dungeon
rychan Sun 05:33
Showcase : isometric prototype
Dabz Fri 12:43
Dev-Diary : Helichopper stuffs
Jayenkai Sat 18:10
Showcase : HexWarrior
gameleaper Thu 07:48
Showcase : SpikeDislike3
rychan Sun 13:51
Rant : Refresh Creations -> Refresh Games
rychan Sun 08:20
Link : Ban gay marriage?!
steve_ancell Sat 18:01
Article : Advanced BBCode
Jayenkai Sat 06:02
Showcase : Snake Me Do
rychan Thu 15:04
Showcase : 3DRetroPrivateer41
gameleaper Sat 09:02
More

Who's Online
spinal
Mon, at 12:36
GfK
Mon, at 12:29
rockford
Mon, at 12:23
Pakz
Mon, at 11:36
shroom_monk
Mon, at 10:35
Dabz
Mon, at 09:48
gameleaper
Mon, at 08:49
rychan
Mon, at 08:46
Jayenkai
Mon, at 08:34
steve_ancell
Mon, at 08:00
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.