[dokuwiki] Re: Preventing page blanking?

  • From: Christopher Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 21 May 2013 13:02:17 +0100

On 21 May 2013, at 02:18, Sam Wilson <sam@xxxxxxxxxxxxxxx> wrote:

> Hi all,
> 
> I've got an idea to write a plugin that would prevent people saving pages
> with no content. This would force them to leave some comment about why the
> page is no longer there (and e.g. add a redirect link). Has anyone done
> this before? Is it the wrong way to do this sort of thing?
> 
> My initial investigations make me think it'll be necessary to use
> ACTION_ACT_PREPROCESS and just change $ACT — because IO_WIKIPAGE_WRITE is
> too late and saveWikiText() does particular things for pages what
> $wasRemoved ;-)
> 

I think "preventing" is a bad idea.   I can see a warning might be helpful, 
especially if there are links to the page elsewhere in the wiki.

- Chris


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Other related posts: