Sectioning
If you just need to separate your form in different sections, all you need is a section widget. For example in your settings.php:
[personnal]
type = section
setValue = "Personnal Information"
[name]
type = text
;...
[contact]
type = section
setValue = "Contact information"
Larger trunk of text
If you want to put more than a one line sentence, you can use a template like follow.
- first, create the template in the html folder. for example, html/help.spt :
<tr><td colspan="2">
<h2>{title}</h2>
<p>{long_msg}</p>
</td></tr>
- then, in your settings.php:
[help]
type = template
template = help.spt
setValues = "eval: array('title'=>'Important advice', 'long_msg' => 'This very long message is just a way to show how you can put more than a one line sentence in your form')"
and that's it!
Revision from August 1, 2007 1:15 PM by electrolinux
Forward in time (1 more) | See current | See changes | Linked from: Forms