Developer's Manual  Blocks  Property types  image

image

Allows selecting image file from server disk.

Example

<?
$properties 
= Array(
  
'image' => Array(
    
'type'     => 'image',
    
'value'    => '',
    
'label'    => 'Icon'
  
)
);
?>

Property value has the following format:


Array(
  
'src' => string path_to_image,
  
'x'   => int image_width,
  
'y'   => int image_height
)

The image type has File Manager assigned to it.

David Petersen, public at petersendidit dot com | 24.04.2006 21:04
the returned array also has an alt property

the array really is:

Array(
    'src' => string path_to_image,
    'x'   => int image_width,
    'y'   => int image_height,
   'alt'  => alternate_text,
)
Please login to add comments.