insert a menu selector |
|
| see input, label | |
select a value from a list
<r:select name='reason' values='failed,missed,sickness' selected='failed'/>
select a class
This is used when creating new objects.
<r:select name='klass' values='Project,Section' selected='Project'/>
select a parameter
This can be used to feed an ajax zone with a parameter (something that is not related to “node[]”).
<r:select param='rel' values='friend,husband,pet'/>
select from a list of nodes
<r:select name='icon_id' nodes='images in project' selected='main.icon_id'/>
value translation
You can translate the values to display (uses the current dictionary). This example would show options with value 1 showing as ‘english’, value 2 as ‘french’, etc.
<r:select name='foo' values='1,2,3' tshow='en,fr,de'/>
select a time zone
<r:select name='tz' type='time_zone'/>
select some attribute value
You can use a query to get values and use them inside the select. This can be used to have some “templates” for letters or replies:
<r:select name='text' nodes='letter_templates in site' attr='text' show='title'/>
In case you want to copy more then just a field, you might want to have a look at the “copy_id” special attribute (not documented here yet, write an email to the mailing list).