Feature Proposal: Add beforeNewWeb and afterNewWeb handlers to the Plugin API

Motivation

  • Allow a plugin to enforce web naming conventions or other controls on new web creation
  • Allow a plugin to perform follow-on actions when a new web is created such as replicating the creation of the new web to a mirror or backup site or sending a notification to the site administrators

Description and Documentation

Allow plugins to detect the creation of new webs and object or react to the creation of the new web.

Examples

Impact

Implementation

-- Contributors: BryanThale - 13 May 2010

Discussion

Excellent. How about: preprosessing topics from template web when copying them to the target location including creating new topics on the fly.

-- MichaelDaum - 14 May 2010

Glad someone finally asked for this. I think we've cleaned up the store API sufficiently to make this feasible. The handlers should be called from Foswiki::Meta.

-- CrawfordCurrie - 14 May 2010
Topic revision: r3 - 14 May 2010 - 08:29:53 - CrawfordCurrie
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads