Hi,
I am working to move several hundred html files from two other platforms into Confluence. I know that I can just input the raw html into an HTML macro from the marketplace, but I'm not sure if the content of the HTML in an iFrame is indexed, and is therefore searchable from outside of that particular page. Currently, I have a convoluted process of using pandoc to convert all the HTML files into docx files, which I am then uploading one at a time to a recreated hierarchy in various Confluence spaces. Being able to upload the raw HTML will save some headaches on formatting issues that come up during the file conversion process, and would make the process easier for the hundreds of HTML files left to go. Being able to search for these uploaded pages is a required part of my project, and I cannot use an option that does not allow for the content of the HTML pages to be searched for.
Bonus points if anyone can confirm that WebDAV is an option! That would be much easier, as I could import the files in bulk instead of going one at a time.
This article in the KB seems to indicate that it is possible with Confluence Cloud. However, this article declares right at the top that it is not. I have not yet been able to successfully create a WebDAV using Windows or Cyberduck.
Thank you!
Hi @Jake Arenberg ,
Indeed, content in iframes is NOT indexed for search in Confluence Cloud.
And WebDAV is also not supported.
You might be able to use the Confluence API to create the pages, as described here: https://medium.com/@abhishek67parmar/creating-a-confluence-page-with-rest-api-c2a8efc6f546
Hi Marc,
Thanks for the quick reply and straightforward answer on the indexing and WebDAV questions. Would you be able to point me towards more robust documentation around the Confluence cloud API? I think I will need a guide to the authentication part of the process as well as the page creation sample code in your linked article.
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I assume the process you want to execute is only run by you, and more or less once only.
For authentication you can generate an API token, and use it in all API calls. That means all pages generated will have you as an author (see https://developer.atlassian.com/cloud/confluence/basic-auth-for-rest-apis/ ).
API information with code examples is available here: https://developer.atlassian.com/cloud/confluence/rest/v1/intro/#about
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.