HTML macro and images in the HTML file

I am still evaluating Confluence to upload HTML files. I now have html files that are static--but they have a lot of images (with the path). When I use the macro HTML, I cannot see the image files. I was wondering how to include the images within the HTML page in such a case. The images are present in the page as attachment, but not picked up by the HTML code. For example, if the link says common imagename.png, how does the HTML macro handle it. I am not sure if you even support this HTML macro.

1 answer

This widget could not be displayed.

You need to use the HTML Include macro to display an HTML page, and if your images are referenced through relative addressing, you need to convert them to absolute addresses. (I've tried using a <base> statement in the file, but Confluence appears to ignore it.) I don't believe you can access images attached to a Confluence page -- at least I've never heard of anyone doing that -- they need to be accessed via a URL within the HTML page.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

203 views 2 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you