Allow to Users to Edit the same Page at the same time

Permalink
Hi All,

I have a page which by default, is a shared page "profile" - I have added a snipped of code to allow users to upload content to the page and thus, have some custom content in their.

I will eventually have 500 users wanting to do this, but when one is editing the page, the other can't get in.

I have searched high and low and can't find anything on the subject, but my only solution is to override whatever is stopping two people from editing the page at the same time.

With the snippet of code I have, the content is posted with the User Id attached, so the content won't change every time some adds to the shared profile page. I just need to get rid of the bottle neck.

Any suggestions would be greatly appreciated.

PortobellaRain
 
WebcentricLtd replied on at Permalink Reply
Hi,
can you explain in a little more detail - especially about the code snippet you have.
It sounds more like you want a block that exposes content in the page rather than having all those users edit the page directly itself - that said I'm not clear on what you are attempting to achieve.
PortobellaRain replied on at Permalink Reply
PortobellaRain
Hi of course,

thanks for getting in touch. I am working on a university based project, where students as part of an assessment process for one of their modules, will be required to upload a video sample to a secure location that the academic can access and feedback on.

We have decided on creating the C5 CMS; as this will offer the academics much more in terms of teaching and learning for distance learning students - with adding new pages, integrating content and generally treating it like a mini LMS.

With this C5 CMS in mind, the objective is to create secure section of the site where registered students can upload the video via a youtube url (Youtube Block), thus not risking issues of massive file uploads and strain on server space etc to their individual profile pages. Basic tutorials will be added to the CMS to help them add the content when they need to.

So far using a snippet of code:


<?php
$profile_area = 'Profile Area ' . $profile->getUserID();
$a = new Area($profile_area);
$a->display($c);
?>


I have added this to the view.php within the Single Pages Directory, making each profile page editable but when the content is added, it is individual to the registered user. So I'm 90% there.

However, with testing, when two users are trying to add a video to the profile page (with it being a shared page on the CMS by default) they have to wait until that user has finished editing. We have 500 users wanting to complete this task and this could create a massive bottle neck for users and a disaster for the academics.

With this page being the only page that students can edit via the toolbar thanks to group permissions, page permissions, block permissions etc, my thinking is to switch off the one-person-only editing aspect of the CMS; as the other pages on the site will be edited by the academic and only the academic. Is there an element of the DB/ file directories within the CMS where I can change this? Or is there a better way of doing it?

If so, what would that better way be and where can I look to make the necessary amendments to the page?

I hope this gives the detail you needed?

Best wishes,

Ben.