view_form - add a attribute to an img field on each line of view_form

Skip to first unread message

Ari Sobel

Apr 17, 2024, 11:55:12 AMApr 17
to Users Mailing List, Andrew Yushev
Hi, to all

I want to add 
an attribute to a img field on each line of view_form

function on_view_form_created(item) {
   //Perhaps here

Trying to add a attribute called data-zoom-image inorder to implement  elevateZoom lib.

is a way to do it?

Dean D. Babic

Apr 17, 2024, 8:00:48 PMApr 17
to Users Mailing List
Hi Ari, 
would that require two images? Ie:

If so, I think this is a problem, since there is no way to have two images uploaded, one with smaller resolution and one with high,
in two different folders....

Drazen Babic

Apr 18, 2024, 10:43:06 PMApr 18
to Ari Sobel, Users Mailing List
Nice solution!
Thanks for reporting back!

On Fri, Apr 19, 2024 at 4:38 AM Ari Sobel <> wrote:
Hi Dean,

It wasn't  necessary to have it different folders. Doen matters the source of the image. But at the end, I used another lib:

as below:

It Worked for me


You received this message because you are subscribed to the Google Groups " Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages