| *Name* | *Type* | *Size* | *Values* | *Tooltip message* | *Attributes* | | Title | text | 80 | | Book or article title | | | Category | select | 1 | ,Interesting,Remarkable,So-so | How you rate this reading material | | | Author | text | 50 | | Author's last name | |
WEBFORMS
in the Web's Web Preferences (a comma separated list).
If you create a topic, you can always add a form to the topic by choosing "Add form" in the edit screen.
Now we will create an HTML form that does this automatically.
<form action="%SCRIPTURLPATH{edit}%/%WEB%/" method="post"> Name of the new topic: %BR% <input type="text" name="topic" class="foswikiInputField" size="32" /> Title of article or book: %BR% <input type="text" name="Title" class="foswikiInputField" size="32" /> <input type="submit" class="foswikiSubmit" value="Create topic" /> <input type="hidden" name="onlywikiname" value="on" /> <input type="hidden" name="formtemplate" value="ReadingForm" /> <input type="hidden" name="topicparent" value="%TOPIC%" /> </form>Now create a bunch of topics with this form.
%SEARCH{ type="query" "form.name = 'ReadingForm'" nonoise="on" format=" * [[$web.$topic][$formfield(Title)]]" }%To list all topics where the author name ends in "Auden":
%SEARCH{ type="query" "form.name = 'ReadingForm' AND Author ~ '*Auden'" nonoise="on" format=" * [[$web.$topic][$formfield(Title)]]" }%
%SEARCH
.
Back to: FrequentlyAskedQuestion