This topic contains 3 replies, has 2 voices, and was last updated by zebimax 6 years, 4 months ago.
- Topic
Hello All,
I am new oroplatform, i have created the custom entity related many to one with oro_attachment_file.
migrations looks like follow123456789$this->attachmentExtension->addFileRelation($schema,'custom', // entity table, e.g. oro_user, orocrm_contact etc.'file', // field name[], //additional options for relation7, // max allowed file size in megabytes, can be omitted, by default 1 Mb58, // thumbnail width in pixels, can be omitted, by default 3258 // thumbnail height in pixels, can be omitted, by default 32);It stores the file correctly but i am not sure how to render this in image tag,if i tried
1{% set avatar = oro_configured_image_url(entity, 'file') %}I am getting error like
An exception has been thrown during the rendering of a template ("Parameter "height" for route "oro_resize_attachment" must match "\d+" ("" given) to generate a corresponding URL.")
how i can resolve this issue.
The forum ‘OroPlatform’ is closed to new topics and replies.