DokuWiki locks pages, which is a great thing.
My only beef is: since individual sections can be 'edited' - it would be nice if the locking mechanism only locked that section, versus the entire document.
Any thoughts?
See 444
A conflict resolution mechanism like the one used in PHPwiki would be great. It would then be easier to work together on a big page.
This is very straight forward. I need someone to build this for me, I currently have a bounty on it. Please help me out, and dokuwiki.
When a user edits a section, then immediately lock that section by inserting into the document, two timedate-stamped anchor tags surround the section being edited, write that to disk, then when they save, go back and replace the text in between the anchor tags with the new data.
> - a ”#!endlock:” below it
DONE
Here is what the Wiki Data file would look like during all stages of the scenario presented above:
Document data txt before being edited:
====== Header 1 ====== some text ====== Header 2 ====== some text ====== Header 3 ====== some text
\\
Someone clicks “edit” under Header 2:
====== Header 1 ====== some text #!beginlock:20060615-14:33:09.54 ====== Header 2 ====== some text #!endlock:20060615-14:33:09.54 ====== Header 3 ====== some text
\\
During the edit, someone else had edited and saved Section 1 using the same method:
====== Header 1 ====== some text. some more text, these lines have been added by another user blah blah blah ====== a new Header has been added ====== some more text #!beginedit:20060615-14:33:09.54 ====== Header 2 ====== some text #!endedit:20060615-14:33:09.54 ====== Header 3 ====== some text
\\
NOW when this user goes to submit his new edits for section 2, the system just replaces whats between the datestamped keys:
====== Header 1 ====== some text. some more text, these lines have been added by another user blah blah blah ====== a new Header has been added ====== some more text #!beginedit:20060615-14:33:09.54 < ====== Header 2 ====== <-------- **THIS TEXT IS REPLACED** some text < #!endedit:20060615-14:33:09.54 < ====== Header 3 ====== some text
contact me if you can make these updates and i'll pay you US $45.00 via paypal. thanks.
-tim(.no.s.p.8.m.)(8t)simulat(d07)com
Would be even more efficient if the lock is not inserted in the data page itself but in a separate file. For exemple you can insert in the lock file the beginning and ending line number block. “Just” need to prevent full page editing while partialy editing the page. And prevent partial editing while full editing a page.
I think writing lock data in the page data is agasint the philosophy of having an always hunman readable data file.
Has this plugin been looked into? If not could we hire someone to make this happen e.g. We all contribute to this plugin. I will pay towards this!!!