Latest Uploads
PixeLink - ... oween 2014

rockford

PixeLink P ... zle Editor

rockford

PixeLink

rockford

image-21-0 ... -21-29.jpg

Jayenkai

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

Jayenkai

image-15-0 ... -20-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).

-----
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
RIP : Jay's Nan
Kuron Fri 06:26
Tim Cook Comes Out
Kuron Fri 05:38
Little Lever News
Kuron Fri 05:12
Scary Music
rychan Fri 03:21
Happy Birthday MagicMan
Kuron Fri 02:35
SoCoder Feature Request
Kuron Fri 00:34
Happy Halloween from Kuron
Kuron Thu 22:45
Happy Halloween
Kuron Thu 19:24
Tabitha
rychan Thu 15:16
What they promise - and what they deliver...
steve_ancell Thu 14:08
More

Latest Items
News : Newsletter #241
steve_ancell Thu 20:46
Snippet : Monkey Framework - HTML Layout
steve_ancell Thu 08:35
Woot : Update on hand issues
Kuron Fri 10:34
News : Newsletter #240
steve_ancell Fri 05:29
Techy : My Newest Toys
Jayenkai Sun 04:16
News : Newsletter #239
Jayenkai Sat 05:34
Showcase : Preppie!
Jayenkai Fri 13:00
Rant : I Stubbed My Toe...
steve_ancell Tue 09:47
Blog : Bedroom 2.0
Kuron Mon 18:59
Link : Message(s) from the grave
Jayenkai Tue 09:27
Blog : 20 Years Ago....
steve_ancell Mon 15:28
Life : Back Online
Kuron Tue 11:48
Showcase : Munky Blocks DX
Jayenkai Mon 07:06
Showcase : Little Nemo's Nightmare
Jayenkai Sat 04:14
News : Newsletter #234
rychan Fri 08:02
More

Who's Online
Kuron
Fri, at 06:46
rockford
Fri, at 06:19
Jayenkai
Fri, at 05:58
steve_ancell
Fri, at 05:27
shroom_monk
Fri, at 04:23
HoboBen
Fri, at 03:42
rychan
Fri, at 03:23
waroffice
Fri, at 02:47
spinal
Fri, at 01:58
Krakatomato
Fri, at 01:45
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.