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
A corrupted version of chooser form.
That's because what you are trying to do is not valid. Here's how it works:
- You set the variable WEBFORMS to the value %SEARCH{...}%
- TWiki parses that value into a list, separating on ,
- 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
Oops - I created
Item11527 before I found this one. Closing this as duplicate.
--
PaulHarvey - 16 Feb 2012