I am working on a training log application and use select controls throughout. I took the advice of the forms documentation and create tables that can be used to generate select lists for TWiki forms. I also want to use these same tables for HTML forms.
The TWiki documentation recommends creating tables for this purpose in this format:
| *Name* |
| NoDisclosure |
| Public Supported |
| Public FAQ |
Consequently, TWiki rendering does not see the result as a line in a TWiki table.
I know how to parse this in Perl but so far have not been able to coax var%SEARCH to do my bidding.
I am aware of similar examples in the SearchCookBook but these don't quite fit the bill.
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Others will help you with filtering the headers more clearly.
-- FranzJosefGigler - 11 Nov 2007
Hi, Franz!
Thanks for your suggestion! I had overlooked the separator parameter. I understand better why I get a blank first option. The regex in the plain string in a varSEARCH is a topic selector! It doesn't select text within a topic. The regex pattern in $pattern selects text within a topic. My $pattern regex results in an empty string for the first line.
It would be nice if there was an option so the format string is only emitted when the result of the pattern regex is non-empty. Anyway, I am getting usable results now.
Thanks again.
John
-- JohnPoplett - 12 Nov 2007