Need help to view an attached HTML Page

Is there anyway I can attach a saved HTML file into CF. Then use the Iframe macro (or any other macro) to view that html page on a CF page? Or can anyone think of a better solution for viewing a HTM(L) file on a confluence page.

Currently I am having to host the HTML page on another server.

thanks

1 answer

1 accepted

This widget could not be displayed.

I think there are a number of ways of doing this, here is one that I know works :).

Use the HTML Macro from HTML Plugin for Confluence. You can display html from an attachment, system file, or url. For example, here is the wiki markup version of how you would do it or just use the Macro browser to prompt for similar:

{html:script=spacename:home^example.html}
{html}

Unless you only have trusted users editing content on your site, consider using Macro Security for Confluence to avoid security exposures by allowing hmtl content on your site.

Thanks for your suggestion Bob. Do you know if this is also possible with the HTML plugin thats built into confluence?

If you don't have security concerns on your site, enable the Atlassian HTML macros and see if it supports your use case. html-include supports including html from a url. I don't think there is any support for attachment or system file inclusion, although you can use the url of an attachment if necessary.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday 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...

430 views 4 6
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