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

API
edit

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

Looks like this would be reasonably well accepted. But no developer. Setting to parked.

-- Main.GeorgeClark - 13 Feb 2016 - 19:05
Topic revision: r4 - 13 Feb 2016, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy