Tags:
create new tag
view all tags

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.

  1. Variables in %TWIKIFORMPATH% are expanded
  2. The value is split by comma and each web is checked if the form definition topic exists.
  3. The first form definition topic found is used
  4. 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

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2013-02-18 - HideyoImazu
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.