display an input field |
|
| see form, Improved tags, label, select | |
id
When you need to create links or set a parent id, you can use the “id” type. This shows a text field and uses Ajax to find the node from a pseudo id (a number or a string to find the object):
<r:input type='id' name='icon'/>
date
When inputing a date parameter, Zena shows a javascript calendar box. You can use the “time” parameter to disable time values.
<r:input name='log_at' type='date' time='false'/>
param
This will be removed: use <input> instead of <r:input> for this purpose.
You can use “param” instead of “name” if you need to pass parameters that are not related to the node:
<r:input param='c' value='#{params[:c]}'/>
checkbox
When you display a checkbox, Zena inserts a hidden field with the value to send when the box is not checked:
<input type='hidden' name='node[tagged][foo]' value=''/>
In some situations, you might need to use something other then ”” blank when the checkbox is not checked:
<r:input type='checkbox' name='status' value='100' blank='50'/>