select

insert a menu selector

  • root_class display the list of subclasses
  • without list of classes to omit (used with root_class)
  • nodes list of nodes
  • attr node attribute to use (default: id)
  • show node attribute to display (default: name) or values to display (when used with ‘values’)
  • tshow translated values to display
  • values list of values separated by commas
  • type (time_zone)
  • selected selected value
see input
<r:select name='klass' root_class='Page' without='Project,Section'/>
<r:select name='parent_id' nodes='projects in site'/>
<r:select name='parent_id' nodes='23,21,1'/>
<r:select name='v_text' nodes='letter_templates in site' attr='v_text' show='name'/>
<r:select name='d_day' values='Saturday,Sunday'/>
<r:select name='klass' values='Project,Section' selected='Project'/>
<r:select name='d_tz' type='time_zone'/>
<r:select name='icon_id' nodes='images in project' selected='[main.icon_id]'/>
<r:select name='d_foo' values='1,2,3' tshow='en,fr,de'/>

You can use ‘[..]’ escapes in selected clause. The last example will show options with value 1 showing as ‘english’, value 2 as ‘french’, etc.