A way to use html include with macro code inside.

Hi All,

I would like to import one html file to a confluence wiki page, in which there are macro code lines (like a dropdown {expand}) as wiki markup. But it looks like, that the html include only includes the text and normal html tags but does not parse the macros. The numbers and the titles of the dropdowns are dynamically. The html file gets generated from a java program.
Inside the dropdowns I got some tables (which are getting displayed) but confluence does not parse the {flowchart} wiki markup macro which is also inside the expand macro.

I looked up on many sites and forums but I can't find a solution to display the flowcharts in another way, than with the markup {flowchart} macro or include them with an URL.

In Gliffy there is only an option to upload a specific file, but I want to get them over an URL and this at displaying the wiki page, because the html files with the flowchart macros inside get generated also in a java program.

My idea is the following:
I got one file to include with the whole html code. Inside this file there are also includes for the different flowcharts (or expands).

With a normal include the wiki does not parse the macro statements inside this one html file.

Any idea, if its possible to import a gliffy diagram (which is manually generated and not in any gliffy editor) or to import the html code, so that wiki markup gets parsed and also every each macro which is defined inside?

1 answer

0 vote
Davin Studer Community Champion Apr 21, 2014

Instead of icluding the content with the include-html macro you could actually create a wiki page with the content preformatted. Check out the WebDAV plugin(comes pre-installed) for Confluence. It's super slick. It maps Confluence to a filesystem layout so you can work with it just like you would with a file system. Each page has a directory with a corresponding name and inside the directory is a .txt file with the same name as the directory. The content of the .txt file is your page content. Any other documents inside the folder are page attachments. Any folders inside a folder would be child pages. Thus, any program that can write to a file system could write to Confluence. This way you could create the shell page and just write the html directly to the page. Below is an example of how it structures the filesystem and a screenshot of what it really looks like.

My page (folder)
|
| My page.txt (content)
| Blah.pdf (attachment)
|
| My sub page (folder)
|
| My sub page.txt (content)

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 Uncategorized

Friday fun: how many celebrates Midsummer holiday or is this a Swedish tradition only?

Any other country that celebrates Midsummer holiday (this friday 22 June)?  

41 views 3 1
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