[pmwiki-users] "Save as draft" capability
Patrick R. Michaud
pmichaud at pobox.com
Mon Feb 6 16:46:32 CST 2006
I've just added a "Save as draft" capability to the Test group
on pmwiki.org -- feel free to experiment with it and let me
know if there are any difficulties.
Here's how it works from an author perspective: When drafts
are enabled, a "Save as draft" button appears in the list of
buttons. Pressing this button causes the current text to be
saved to a page that has "-Draft" added to the end (customizable
by $DraftSuffix).
Any subsequent edits of the page will automatically pull up the
-Draft version of the page until the -Draft version is officially
saved back to the original (via the normal "Save" button).
The -Draft version of a page and its original source each keep
their own histories. When someone saves a draft back to its
original page (via the "Save" button), all intermediate edits of
the draft are recorded as a single edit in the original.
The -Draft version is also removed (actually, renamed) at that
point.
To abandon a draft, simply delete it.
This capability is still somewhat experimental -- while I've
given a fair amount of thought as to how this might interact
with things like edit permissions and simultaneous edits,
I'm still working out all the details for it.
At the moment I have no idea what sorts of problems might arise
from combining these draft capabilities with other recipes such
as comments, pmwe, emacs mode, etc.
Unless we encounter major problems, I expect drafts to be
available in beta23 (but it will be disabled by default in any
event).
Pm
More information about the pmwiki-users
mailing list