• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

In WebPreferences I set

  • Set WEBFORMS = %SEARCH{ "Form$" scope="topic" type="regex" format="$topic" separator=", " nonoise="on" }%

There are a few more places where I've desired to generate perference values. Obviously, there could be a performance hit of using a search here, but if cached that could be acceptable.

This appears to give a perfectly valid WEBFORMS value.

However, clicking add form on a page results in

Possible form templates


Searched: name="formtemplate
Number of topics: 0

A corrupted version of chooser form.

That's because what you are trying to do is not valid. Here's how it works:

  1. You set the variable WEBFORMS to the value %SEARCH{...}%
  2. TWiki parses that value into a list, separating on ,
  3. TWiki formats the list as an option select

Note the missing step between 1 and 2; TWiki does not expand variables embedded into the list of forms.

You can try requesting this as an enhancement, of course. Raise a brainstorm topic in Codev.

CC

ItemTemplate
Summary Using %SEARCH% in WebPreferences:WEBFORMS results in broken Add Form list
ReportedBy TWiki:Main.JadeCravy
Codebase 4.0.2
SVN Range Mon, 05 Jun 2006 build 10479
AppliesTo Engine
Component

Priority Enhancement
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2006-06-22 - JadeCravy
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback