I'll first recommend checking the documentation of "cq_vc_hotspot" shortcode, to see if it can be made to work with image's URL, instead of ID.
If this isn't supported you can create a custom shortcode, that gets the URL value from the custom field's image and then gets its ID from the database, as suggested by Luo, in this reply: https://toolset.com/forums/topic/image-field-id/#post-272734
Once, you've included the code for the new shortcode in your theme's "functions.php" file, you can call it inside your shortcode like this:
Hello Waqar,
your proposal works for most of my problems. (galleries, single images)!
I was not able to find the right documentation for the functions from WpBakery.
But I used the proposal with [media-info slug="image" info="id"]
But we do have a case where we call multiple images, but not in a gallery but on seperate tabs.
Its the vc_tta_tabs
etc. so every tab uses one image at a time - this es where neither the
[media-info slug="dokument-bild" info="id"] nor the
[media-info-multi slug="dokument-bild" info="id"] is working
Any ideas for this?
My problem is, I do not know how many images are needed - it can be 3 or 15 or...
Have you checked the shortcode [media-info-multi slug="dokument-bild" info="id"] alone, to see if those image IDs are being returned properly?
If IDs are being returned correctly, you can move the repeating part of the tabs shortcode, inside the "foreach" loop in the shortcode's function, so that it is dynamically generated, matching the number of images returned.
For example, from your code, this part seems to be repeating for each tab/image:
For further assistance around the WPBakery plugin's shortcodes or personalized custom development in general, you can either consult plugin's official support team or someone from our list of recommended contractors: https://toolset.com/contractors/