How to integrate other HTML pages

Hi!

I would like to integrate some generated HTML reports into Confluence and wonder what the easiest / best way would be to to that. The generated HTML page consists of HTML, some JS- and CSS-files, images, etc.

  • Is it possible to upload the files to a Confluence space and display them like other regular Confluence pages?
  • Is it possible to attach all the files to an existing page and include the attachment using a macro or whatsoever (similar to the Excel macro)?
  • any other ideas?

Thanks!

Christopher

3 answers

1 accepted

I've done this with out Confluence-based documentation site. We have a few hundred pages of API docs, including stylesheets and images that are included. These API docs are in addition to the COnfluence content and don't require Confluence's styling.

To do this, just copy the folder that contains all your HTML into the confluence/confluence directory on the server. At that point, you'll be able to access the pages at the same level as your the /display path. You might also have to tell Confluence not to render the pages with its decorators.

I tied our HTML pages in to Confluence's permissions system and prevented the Confluence decorators from being applied to the HTML pages. I blogged about it here: http://www.confluenza.com/2013/01/04/protect-static-html-pages-using-crowd-and-confluence/

Sounds good! I'll give it a try! :)

Thanks!

Do you want the pages to be an attachment or for users to be able to view them? Do they need to look like the other Confluence pages, or do they stand on their own?

  • The users should be able to view them like real pages.
  • The pages stand on their own. Styling like other Conluence pages is not neccessary.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,848 views 27 11
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