Skip to content

Image Field

The Image field extends the File Field and accepts the same settings. Unlike the File field, a thumbnail of the main image will be displayed:

image info

Output:

php
{$image|print}

[image] => Array
(
    [url] => assets/images/1/29/8851807-4002676.jpg
    [width] => 800
    [height] => 533
    [size] => 664412
    [title] => 8851807-4002676.jpg
)

Example:

html
<img src="{$image.url}" width="{$image.width}" height="{$image.height}" alt="{$image.title}">

© PageBlocks 2019-present