Mind's Forge |
PmWiki »
DraftsPmWiki has the capability to stage draft versions of a page prior to them becoming "official". All of the draft pages end in "-Draft" by default (this can be changed by setting Configuration and usageWhen the site administrator sets The "Save draft" button causes any edits to be saved to a "-Draft" copy of the original page, leaving the original page intact. Subsequent requests to edit the page (either the original or -Draft) bring up the draft copy for further editing. The "Publish" button saves back to the original non-Draft copy of the page, removing any -Draft page that may have been created. By default, saving drafts and publishing are available to anyone with 'edit' permissions (see Passwords). However, the site administrator can also set the When "publishing", how the page's history is handled depends on whether the administrator has set the
Drafts and (All)RecentChangesBy default, using the "Save draft" or "Save draft and edit" button will be recorded to both Site.AllRecentChanges and Group.RecentChanges. Also after "publishing" a draft version an orphaned link to the "-Draft" page will remain. To disable on both Site.AllRecentChanges and Group.RecentChanges: $DraftRecentChangesFmt = array(); or alternatively: if ( @$EnableDrafts && @$_POST['postedit']>'' || @$_POST['postdraft']>'' ) unset($RecentChangesFmt); To only disable one of these, unset it individually: if ( @$EnableDrafts && @$_POST['postedit']>'' || @$_POST['postdraft']>'' ) { unset($RecentChangesFmt['$Group.RecentChanges']); # -and/or- unset($RecentChangesFmt['$SiteGroup.AllRecentChanges']); } If a $DraftRecentChangesFmt['Site.DraftRecentChanges'] = '* [[{$Group}.{$Name}]] . . . $CurrentTime $[by] $AuthorLink: [=$ChangeSummary=]'; See also Drafts with searches, pagelists, and RSSThe drafts module also sets pagelists and searches (and thus RSS feeds) to ignore "-Draft" pages by default; one has to do list=all or similar in order to have draft pages included in a pagelist or RSS feed. How do I moderate all postings? Start by enabling drafts to change the "Save" button into separate "Publish" and "Save draft" buttons. Then set This page may have a more recent version on pmwiki.org: PmWiki:Drafts, and a talk page: PmWiki:Drafts-Talk. |
Page last modified on November 21, 2019, at 09:17 pm |