IMAGE Block
The IMAGE block displays one or more images within an attachment.

Block Parameters
|
Name |
Description |
|
LINK* |
URL of the original image |
|
NAME |
Name of the image |
|
PREVIEW |
URL of the thumbnail version of the image. If not specified, the |
|
WIDTH |
Width of the image in pixels. It is advisable to provide this along with |
|
HEIGHT |
Height of the image in pixels. It is advisable to provide this along with |
Example
How to Use Examples in Documentation
JS
PHP
{
IMAGE: [
{
NAME: 'This is Mantis',
LINK: 'https://files.shelenkov.com/bitrix/images/mantis.jpg',
PREVIEW: 'https://files.shelenkov.com/bitrix/images/mantis.jpg',
WIDTH: 1000,
HEIGHT: 638
}
]
}
[
'IMAGE' => [
[
'NAME' => 'This is Mantis',
'LINK' => 'https://files.shelenkov.com/bitrix/images/mantis.jpg',
'PREVIEW' => 'https://files.shelenkov.com/bitrix/images/mantis.jpg',
'WIDTH' => 1000,
'HEIGHT' => 638
]
]
]
Continue Learning
Copied
Next