Index: openacs-4/packages/acs-templating/www/doc/guide/form-widgets.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/guide/form-widgets.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/doc/guide/form-widgets.html 13 Mar 2001 22:59:27 -0000 1.1 +++ openacs-4/packages/acs-templating/www/doc/guide/form-widgets.html 15 Apr 2003 18:04:24 -0000 1.2 @@ -6,10 +6,24 @@ <h2>Custom Form Widgets</h2> <a href="..">Templating System</a> : <a href="../developer-guide.html">Developer Guide</a> : - User Guide<hr> + User Guide<hr /> -<hr> -<a href="mailto:templating@arsdigita.com">templating@arsdigita.com</a> + <p> + Form widgets are implemented as tcl procs that output the + html to generate the form element. The tcl proc must be in + the template::widget namespace. So the proc for the search + widget is called template::widget::search. The code that + generates the built in widgets is in + packages/acs-templating/tcl/widget-procs.tcl. + </p> + <p>If the data from the form widget needs to be formatted or + processed a tcl proc is created in the + template::data::transform namespace. For example, templatete::data::transform::search. This takes the input from the user and processes it + to be returned to the tcl code handling the form. + </p> + +<hr /> + </body> </html>