Feature Proposal: Enhance register script to specify a templatetopic param instead of hard-coded 'NewUserTemplate'

Motivation

AddUserToGroupsOnRegistration is a great step forward in improving the registration user experience.

We're setting up a couple of new communities on our wiki, however, and they each want their own customised UserForm.

This is a problem because we can only have a single, global NewUserTemplate topic in %USERSWEB%, so it's not actually possible to have different UserForms per custom registration page/community.

Description and Documentation

Add a new parameter templatetopic consistent with /bin/save and friends.

Continue to assume the existing hard-coded NewUserTemplate topic name if this parameter is missing in the register request.

Examples

Impact

%WHATDOESITAFFECT%
edit

Implementation

-- Contributors: PaulHarvey - 05 Jul 2011

Discussion

The change is small enough that I've targeted for 1.1 (although, not 1.1.4).

-- PaulHarvey - 05 Jul 2011

Actually, 1.2 only

-- PaulHarvey - 16 Mar 2012

This still is a small enough change. Paul, would you like to JDI (just do it)?

-- MichaelDaum - 24 Apr 2013

This has been sitting around for 3 years. I suggest we defer for 2.0. We need to focus on bug fixing.

-- GeorgeClark - 02 Jun 2014

This could probably be done for 2.1.

-- GeorgeClark - 19 Nov 2015

Completed. Also restructured the UserRegistration pages to:
  • Take advantage of the new %SET statements to allow settings to all be made in the registration topic
  • Use the new INCLUDE{"topic1 topic2 .." precedence to simplify some of the include logic.

Any customized UserRegistration page copied from the old Foswiki 1.x/2.0 DefaultUserRegistration still remains compatible.

-- GeorgeClark - 23 Nov 2015
 
Topic revision: r9 - 02 Dec 2015, 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