The place of the image is inside the files and it has alt attribute assigned. I’m really struggling to access this data. Does anybody can help, please?
{% image %} tags do not need to be placed inside an -tag
{{ get_asset_url }} won’t get you the alt-text since it’s providing only the URL
{{ get_asset_url }} won’t get you data from the file-manager unless you put the whole URL into it and - therefore make the get_asset_url more or less obsolete
{{ get_asset_url }} is used inside themes for theme files that are located inside the theme-folder
If you want to display a default image of a module, write your code like this:
{% module 'SOME-NAME' path="@hubspot/linked_image" img={"alt":module.image.alt, "src": module.image.src or get_asset_url("PATH-TO-IMAGE")}%}
My personal recommendation would be to create a custom module which gives you unlimited possibilites in terms of customization. This could be a great start:
Moderator note: While this solution may not address the original poster’s specific situation, it could be helpful for other community members facing similar challenges.
Thank yoy very much for your response. I was trying your solution in many different ways but I still cannot access the image data.
The best way to access data is through this line: