Thursday 13 July 2006 11:41:59 pm
You can define new image alias with fixed size in your override image.ini file. Then use new image alias in template.
{attribute_view_gui attribute=$node.object.data_map.image image_class=your_new_alias}
<i>
For example i want to configure my article class(with image) in such way that it could only accept image file with 3:4 proportion(ex. 600 x 800 px). </i> This is not possible by default. You can't force checking image dimensions during upload. This will require some PHP coding: new datatype or hacking existing for additional validation.
Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog
|