Extension:Semantic Page Series

What can this extension do?
Enables the generation of multiple pages from one Semantic Form

Example implementation is to create pages for recurring events, one page per event occurrence.

Usage
''This section needs to be written. For now the relevant part of the spec is included.''

Example for a workflow:
 * In a page's text the following parser function call is included:


 * This would create a "Create event series" button on the page
 * When the users click this button they are taken to a Semantic Form (defined in Form:EventSeries Form)
 * On the form they can specify the recurring date parameters (among all the other things like location or participants)
 * When they hit "Save" the necessary jobs to create the pages of the series are created in the job queue using Form:Event Form (specified in the target form parameter)

The extension can only work with forms using the one-step-process, i.e. forms where the page name is created fom the form's content. Else it would be necessary to ask the user for a name for every page of the series, which would defy the purpose of the new extension.

Example
The following form defines an event.



As the pages are auto created, you must have the name of the page created by the form to be set automatically, by adding a "page name" parameter within the form definition's "info" tag. It is suggested that the auto created date is used to make each page name unique, as in the example above.

The multi event is then created using:

This takes you to the form where the start date, end date and repeat parameters are entered. When the form is saved the events are created as a job.

Examples of Unit and Period parameters

Download instructions
Download released versions from Semantic Page Series at Google Code.

You can get the current development code using Subversion:

There is a version history available.

Dependencies
This extension was developed for MediaWiki 1.17 with at least Semantic MediaWiki 1.5.3 and Semantic Forms 2.4 installed. Other version might work, but are not tested.

Installation

 * 1) Download the package. Unpack the folder inside /extensions (so that the files are in /extensions/SemanticPageSeries, rename the folder if necessary).
 * 2) In your LocalSettings.php, add the following line to the end of the file:

Configuration parameters
The following settings may be used:

Default setting:
 * $spsgPageGenerationLimits to specify the maximum number of pages that may be generated per request by a member of a user group. If a user is in more than one group, the highest number is used.

If you want to use these settings, just include them in LocalSettings.php AFTER the require_once("$IP/extensions/SemanticPageSeries/SemanticPageSeries.php");

Sponsorship
This extension was sponsored by Prescient Software