Feature Proposal: Picking form definition dynamically
Motivation
For
TWiki applications and for flexibility of TWiki form use, it would be great if TWiki can pick a form definition dynamically.
Description and Documentation
When a TWiki form definition is retrieved,
%TWIKIFORMPATH% having a comma separated list of webs is referred to.
- Variables in
%TWIKIFORMPATH% are expanded
- The value is split by comma and each web is checked if the form definition topic exists.
- The first form definition topic found is used
- If the form is not found but the current web is not checked, the current web is checked.
Examples
* Set TWIKIFORMPATH = FormLib, %WEB%, Apps/BulletinBoardImpl
Impact
Implementation
--
Contributors: HideyoImazu - 2012-11-06
Discussion
A bit esoteric, but I see the need. How about using a form web path instead? This might be easier to understand, and we do not need to introduce a new
foo = bar, moo = boo syntax.
For example a TWIKIFORMSPATH could list webs that are consulted in order until a matching form is found. Example:
-
Set TWIKIFORMSPATH = %IMPLWEB%, Apps/Forms, %WEB%
The current web is consulted last in case the
%WEB% is missing in the TWIKIFORMPATH setting.
--
PeterThoeny - 2012-11-07
I'm fine with
TWIKIFORMPATH as you described.
--
HideyoImazu - 2012-11-07
Accepted by consensus reached at
JerusalemReleaseMeeting2012x11x09, using TWIKIFORMPATH as you described.
--
PeterThoeny - 2012-11-09