Developer's Manual  Blocks  Property types  strings

strings

Allows to enter multiple text values into the single property.

The value of strings property type is array of text values. The text type has additional optional parameter flag and items.

flag

Optional. Specifies the type of SiteSupra editor for editing text values. Possible values for flag are:

Value Description
0 String editor.
1 Text Editor.
2 xHTML Editor.

If flag is omitted 0 is assumed.

items

Required. Defines array of text values.

Example

<?
$properties
= Array(
  
'text' => Array(
    
'type'     => 'strings',
    
'label'    => 'Button captions',
    
'items'    => Array(
      
'ok'      => Array(
        
'label'  => 'Ok button',
        
'help'   => 'Ok button',
        
'value'  => 'Ok'
      
),
      
'cancel'  => Array(
        
'label'  => 'Cancel button',
        
'value'  => 'Cancel'
      
)
    )
  )
);
?>
Please login to add comments.