ezimagealiashandler
Summary
Contains information about an image.
Persistent
No.
Attributes
| Attribute | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| alternative_text | string | The alternative image text (for example "Picture of an apple."). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| original_filename | string | The original name of the image file (for example "apple.png"). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| is_valid | string | Returns either 1 or 0 (valid or invalid). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name of variation | array |
|
Contributors
- Balazs Halasy Maintainer
- Svitlana Shatokhina Updated Maintainer
- Marco Commenter
Comments (2 historical)
Written by readers of the earlier documentation sites, kept as they were.
Example
Marco ·
You can use this code to show additional information of your original image in the "node/view/full" template of your image objects (where $node is your image node):
<a href={$node.data_map.image.content[original].full_path|ezroot} target="_new">Open original Image in new window ({$node.data_map.image.content[original].width}x{$node.data_map.image.content[original].height} Pixel, {$node.data_map.image.content[original].filesize|div(1024)|round} KB) </a>Re: Example
Marco ·
The code is messed up.
I'll try again:
<a href={$node.data_map.image.content[original].full_path|ezroot} target="_new">Open original Image in new Window
({$node.data_map.image.content[original].width}x{$node.data_map.image.content[original].height} Pixel, {$node.data_map.image.content[original].filesize|div(1024)|round} KB)
</a>