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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

455 views 18 9
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