We have an 'announcements' page for our school drupal website (at www.spiritwoodhs.lskysd.ca). I would like to be able to give multiple users the ability to add their own announcements to this page (to alleviate the workload on any one person).

My dilemmma/question: if multiple users edit the same page, might some data get lost? Consider a scenario: User A starts to 'edit' the page, adding announcement 1,2,3. Before he/she is able to 'save' the page, User B starts to edit the same page, adding a different set of announcements 1,2,3. If User B should save after User A, does it overwrite User A's announcements?

Hopefully I haven't confused the matter, which is... can multiple users edit the same page concurrently?

Comments

izmeez’s picture

Take a look at the check out module, http://drupal.org/project/checkout
I'd suggest using the dev version which is almost a year newer than the release version.

Izzy

dman’s picture

Drupal core includes a check for that and will not let person B overwrite if another user has changed to page in the meantime.
What happens next is that B cannot do much more, but at least they know.
- what they should do is copy *just* their change from the textarea, reload the new page, edit that and save their new content in. That usually avoids the worst of the conflicts, but is not 100% easy. But the page integrity is protected.

j_ten_man’s picture

As another thought, why don't you make each announcement a different content type, and then just use views to display a list of all announcements for the week. It might be easier...Anyways, just a thought. The two above both have valid solutions to what you were looking for.

lomo’s picture

From the initial post, I was thinking that if users are supposed to be able to enter and edit their own announcements, the "page" should just be loading in all the "announcements" from the database tables, so if each "announcement" is stored separately and they are only gathered to assemble a page for display, there shouldn't be any real issue with people adding/editing simultaneously. The only potential issue could come from someone given the power to edit another member's posts (a moderating role) editing a post simultaneously with a member (assuming the members can edit their posts).

See you at the Drupalcon!

izmeez’s picture

I haven't tried this but another option to consider might be http://drupal.org/project/revision_fu