This is a demonstration of how our Wiki can be more useful, making it easier for anyone to add a new event. (The "anyone" can be restricted using TWiki.TWikiAccessControl). The operational concept is that each event has its own page, and that page has a form attached to it. There is one page (this one) that would search all those pages, and based on the form contents, put it in the upcoming or recent events list. The example below uses topic names prefixed with "<nop>EventAnnouncement", and the following "special" topics: * TemplateForEventAnnouncement (which contains the initial content of the announcement - which the user should change) * FormForEventAnnouncement - which is appended to each new !EventAnnouncement... topic created by this form. ----- %TOC% ---++ Upcoming Events %SEARCH{search="META:FIELD.*?State.*?(Future|Planning)" type="regex" topic="EventAnnouncement*" casesensitive="on" nosummary="on" nosearch="on" noheader="on" nototal="on" format=" * <b>$formfield(When)</b> - [[$topic][$formfield(One Liner)]]"}% * <form action="%SCRIPTURL%/edit%SCRIPTSUFFIX%/%WEB%/" method="get"> <input type="text" name="topic" value="EventAnnouncementYYYYMMDD" size="30"/> <input type="hidden" name="templatetopic" value="TemplateForEventAnnouncement"/> <input type="hidden" name="formtemplate" value="FormForEventAnnouncement"/> <input type="hidden" name="topicparent" value="%TOPIC%"/> <input type="hidden" name="onlywikiname" value="on" /> <input type="hidden" name="onlynewtopic" value="on" /> <input type="submit" value="Create a new event"/> </form> ---++ Recent Events %SEARCH{search="META:FIELD.*?State.*?Past" type="regex" topic="EventAnnouncement*" casesensitive="on" nosummary="on" nosearch="on" noheader="on" nototal="on" format=" * <b>$formfield(Date Info)</b> - [[$topic][$formfield(One Liner)]]"}%
This topic: Org
>
WebHome
>
WorkingOurWeb
>
PlanForOurWeb
>
WebHomePrototype
Topic revision: r1 - 2005-10-06 - BruceDawson
All content is Copyright © 1999-2025 by, and the property of, the contributing authors.
Questions, comments, or concerns?
Contact GNHLUG
.
All use of this site subject to our
Legal Notice
(includes Terms of Service).